pub enum Seg {
Name(String),
Index(usize),
}Expand description
One step of a Path: a member name, or an array index.
An index into a list is RFC 6901’s: Seg::Index, or a name that is
0 or digits with no leading zero. A name that is anything else, -,
01 or 1.0 among them, names nothing in a list. A number steps into
a map as the member of that name, as in TypeScript.
Variants§
Trait Implementations§
impl Eq for Seg
impl StructuralPartialEq for Seg
Auto Trait Implementations§
impl Forget for Seg
impl Freeze for Seg
impl Move for Seg
impl RefUnwindSafe for Seg
impl Send for Seg
impl Sync for Seg
impl Unpin for Seg
impl UnsafeUnpin for Seg
impl UnwindSafe for Seg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.