pub enum PathSeg {
Field(&'static str),
Variant(&'static str),
Index(u32),
Elem,
}Expand description
One segment of a field path inside a stored type.
Variants§
Field(&'static str)
Named struct field.
Variant(&'static str)
Enum variant.
Index(u32)
Position in an unnamed struct / tuple.
Elem
Element of Vec/Array/Option/map.
Trait Implementations§
impl Copy for PathSeg
impl Eq for PathSeg
impl StructuralPartialEq for PathSeg
Auto Trait Implementations§
impl Freeze for PathSeg
impl RefUnwindSafe for PathSeg
impl Send for PathSeg
impl Sync for PathSeg
impl Unpin for PathSeg
impl UnsafeUnpin for PathSeg
impl UnwindSafe for PathSeg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more