pub enum PathSegment {
Ident(Identifier),
Extension(Identifier),
Value(ObjectKey),
TupleIndex(u8),
ArrayIndex(Option<usize>),
}Variants§
Ident(Identifier)
Regular identifiers like id, description
Extension(Identifier)
Extension namespace fields starting with $ like $eure, $variant
Value(ObjectKey)
Arbitrary value used as key
TupleIndex(u8)
Tuple element index (0-255)
ArrayIndex(Option<usize>)
Array element access
Trait Implementations§
Source§impl Clone for PathSegment
impl Clone for PathSegment
Source§fn clone(&self) -> PathSegment
fn clone(&self) -> PathSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathSegment
impl Debug for PathSegment
Source§impl Extend<PathSegment> for EurePath
impl Extend<PathSegment> for EurePath
Source§fn extend<I: IntoIterator<Item = PathSegment>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = PathSegment>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<PathSegment> for EurePath
impl FromIterator<PathSegment> for EurePath
Source§fn from_iter<I: IntoIterator<Item = PathSegment>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = PathSegment>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for PathSegment
impl Hash for PathSegment
Source§impl PartialEq for PathSegment
impl PartialEq for PathSegment
impl Eq for PathSegment
impl StructuralPartialEq for PathSegment
Auto Trait Implementations§
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnwindSafe for PathSegment
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.