pub enum StackElement<'l> {
Index(u32),
Key(&'l str),
}
Expand description
StackElements compose a Stack. For example, Key(“foo”), Key(“bar”), Index(3) and Key(“x”) are the StackElements compositing the stack that represents foo.bar[3].x
Variants§
Trait Implementations§
Source§impl<'l> Clone for StackElement<'l>
impl<'l> Clone for StackElement<'l>
Source§fn clone(&self) -> StackElement<'l>
fn clone(&self) -> StackElement<'l>
Returns a copy 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<'l> Debug for StackElement<'l>
impl<'l> Debug for StackElement<'l>
Source§impl<'l> PartialEq for StackElement<'l>
impl<'l> PartialEq for StackElement<'l>
impl<'l> StructuralPartialEq for StackElement<'l>
Auto Trait Implementations§
impl<'l> Freeze for StackElement<'l>
impl<'l> RefUnwindSafe for StackElement<'l>
impl<'l> Send for StackElement<'l>
impl<'l> Sync for StackElement<'l>
impl<'l> Unpin for StackElement<'l>
impl<'l> UnwindSafe for StackElement<'l>
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