Enum keypath::internals::PathComponent [−][src]
pub enum PathComponent { Unnamed(usize), Named(&'static str), IndexInt(usize), IndexStr(&'static str), }
Expand description
A component of a keypath.
Variants
Unnamed(usize)
An unnamed field, such as on a tuple or tuple struct
Named(&'static str)
A named field.
IndexInt(usize)
An index into a sequence, such as a vec.
IndexStr(&'static str)
An index into a map with string keys.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PathComponent
impl Send for PathComponent
impl Sync for PathComponent
impl Unpin for PathComponent
impl UnwindSafe for PathComponent
Blanket Implementations
Mutably borrows from an owned value. Read more