pub enum FutureIncompatibilityReason {
FutureReleaseError,
FutureReleaseErrorReportNow,
FutureReleaseSemanticsChange,
EditionError(Edition),
EditionSemanticsChange(Edition),
Custom(&'static str),
}
Expand description
The reason for future incompatibility
Variants§
FutureReleaseError
This will be an error in a future release for all editions
FutureReleaseErrorReportNow
This will be an error in a future release, and Cargo should create a report even for dependencies
FutureReleaseSemanticsChange
Code that changes meaning in some way in a future release.
EditionError(Edition)
Previously accepted code that will become an error in the provided edition
EditionSemanticsChange(Edition)
Code that changes meaning in some way in the provided edition
Custom(&'static str)
A custom reason.
Implementations§
Trait Implementations§
source§impl Clone for FutureIncompatibilityReason
impl Clone for FutureIncompatibilityReason
source§fn clone(&self) -> FutureIncompatibilityReason
fn clone(&self) -> FutureIncompatibilityReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FutureIncompatibilityReason
impl Debug for FutureIncompatibilityReason
impl Copy for FutureIncompatibilityReason
Auto Trait Implementations§
impl RefUnwindSafe for FutureIncompatibilityReason
impl Send for FutureIncompatibilityReason
impl Sync for FutureIncompatibilityReason
impl Unpin for FutureIncompatibilityReason
impl UnwindSafe for FutureIncompatibilityReason
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
FutureReleaseError
: 0 bytesFutureReleaseErrorReportNow
: 0 bytesFutureReleaseSemanticsChange
: 0 bytesEditionError
: 1 byteEditionSemanticsChange
: 1 byteCustom
: 23 bytes