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
Tuple Fields of Field
0: SymbolTuple Fields of Variant
0: SymbolTuple Fields of GeneratorState
0: VariantIdxTuple Fields of CapturedVar
0: SymbolTuple Fields of ArrayElem
0: usizeTuple Fields of TupleElem
0: usizeTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PathElem
impl UnwindSafe for PathElem
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: 16 bytes