pub enum Component<'a> {
Member(&'a str),
Index(&'a str),
}Expand description
A single Path component: an object member or an array index.
Variants§
Member(&'a str)
An object member, the name in a .name segment.
Index(&'a str)
An array index, the decimal digits in a [n] segment.
Trait Implementations§
impl<'a> Copy for Component<'a>
impl<'a> Eq for Component<'a>
Source§impl<'a> PartialEq for Component<'a>
impl<'a> PartialEq for Component<'a>
impl<'a> StructuralPartialEq for Component<'a>
Auto Trait Implementations§
impl<'a> Freeze for Component<'a>
impl<'a> RefUnwindSafe for Component<'a>
impl<'a> Send for Component<'a>
impl<'a> Sync for Component<'a>
impl<'a> Unpin for Component<'a>
impl<'a> UnsafeUnpin for Component<'a>
impl<'a> UnwindSafe for Component<'a>
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