Enum rustc_save_analysis::ty::VariantDiscr [−][src]
Variants
Explicit(DefId)
Tuple Fields
0: DefIdExplicit value for this variant, i.e., X = 123.
The DefId corresponds to the embedded constant.
Relative(u32)
Tuple Fields
0: u32The 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.
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 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: 12 bytes
Size for each variant:
Explicit: 8 bytesRelative: 4 bytes