Enum rustc_middle::ty::VariantDiscr [−][src]
Variants
Explicit value for this variant, i.e., X = 123.
The DefId corresponds to the embedded constant.
Tuple Fields of Explicit
0: DefIdThe previous variant’s discriminant plus one.
For efficiency reasons, the distance from the
last Explicit discriminant is being stored,
or 0 for the first variant, if it has none.
Tuple Fields of Relative
0: u32Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for VariantDiscr
impl Send for VariantDiscr
impl Sync for VariantDiscr
impl Unpin for VariantDiscr
impl UnwindSafe for VariantDiscr
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 12 bytes