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
sourceimpl Clone for FutureIncompatibilityReason
impl Clone for FutureIncompatibilityReason
sourcefn clone(&self) -> FutureIncompatibilityReason
fn clone(&self) -> FutureIncompatibilityReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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