Enum rustc_mir::interpret::validity::PathElem [−][src]
pub enum PathElem {
Field(Symbol),
Variant(Symbol),
GeneratorState(VariantIdx),
CapturedVar(Symbol),
ArrayElem(usize),
TupleElem(usize),
Deref,
EnumTag,
GeneratorTag,
DynDowncast,
}Expand description
We want to show a nice path to the invalid field for diagnostics,
but avoid string operations in the happy case where no error happens.
So we track a Vec<PathElem> where PathElem contains all the data we
need to later print something for the user.
Variants
Field(Symbol)Variant(Symbol)GeneratorState(VariantIdx)CapturedVar(Symbol)ArrayElem(usize)TupleElem(usize)Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PathElemimpl UnwindSafe for PathElemBlanket 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: 16 bytes