Enum rustc_serialize::json::StackElement
source · 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>
source§fn eq(&self, other: &StackElement<'l>) -> bool
fn eq(&self, other: &StackElement<'l>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'l> StructuralPartialEq for StackElement<'l>
Auto Trait Implementations§
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