pub enum SegPat {
Key(String),
AnyKey,
Index(usize),
EachItem,
AnyDepth,
}Expand description
One step of a PathPat.
Variants§
Key(String)
An exact mapping key.
AnyKey
Any mapping key at this depth.
Index(usize)
An exact sequence index.
EachItem
Any sequence item at this depth.
AnyDepth
Zero or more segments of any kind — the ** of this vocabulary. Lets a
rule govern a whole subtree (meta and everything under it) or a key at
an unknown depth.
Trait Implementations§
impl Eq for SegPat
impl StructuralPartialEq for SegPat
Auto Trait Implementations§
impl Freeze for SegPat
impl RefUnwindSafe for SegPat
impl Send for SegPat
impl Sync for SegPat
impl Unpin for SegPat
impl UnsafeUnpin for SegPat
impl UnwindSafe for SegPat
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