#[non_exhaustive]pub enum DriftKind {
Missing,
Changed,
Invalid,
Orphan,
Stale,
}Expand description
How a live object differs from the spec’s.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing
The spec creates it and the database has no such object.
Changed
Both have it, with different definitions.
Invalid
The spec’s statement for it does not compile against the live database.
Orphan
The database has it where the spec governs, and the spec does not create it.
Stale
An allow-list entry that no live orphan matches.
Implementations§
Trait Implementations§
impl Copy for DriftKind
impl Eq for DriftKind
Source§impl Ord for DriftKind
impl Ord for DriftKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DriftKind
impl PartialOrd for DriftKind
impl StructuralPartialEq for DriftKind
Auto Trait Implementations§
impl Forget for DriftKind
impl Freeze for DriftKind
impl Move for DriftKind
impl RefUnwindSafe for DriftKind
impl Send for DriftKind
impl Sync for DriftKind
impl Unpin for DriftKind
impl UnsafeUnpin for DriftKind
impl UnwindSafe for DriftKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more