#[non_exhaustive]pub enum Variant {
Var0,
Var10,
Var110,
VarReserved,
Nil,
Max,
}
Expand description
The reserved UUID variants and the Nil and Max markers.
For convenience, this enum defines the independent Nil and Max variants, although they are
technically subsumed under the variants 0b0
and 0b111
, respectively.
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.
Var0
The variant 0b0
(NCS), excluding the Nil UUID.
Var10
The variant 0b10
(RFC 4122).
Var110
The variant 0b110
(Microsoft).
VarReserved
The variant 0b111
reserved for future definitions, excluding the Max UUID.
Nil
The Nil UUID, which is technically included in the variant 0b0
.
Max
The Max UUID, which is technically included in the variant 0b111
.
Trait Implementations§
source§impl PartialEq<Variant> for Variant
impl PartialEq<Variant> for Variant
impl Eq for Variant
impl StructuralEq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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