Enum rustc_serialize::json::StackElement
source · [−]Expand description
StackElements compose a Stack.
As an example, StackElement::Key("foo"), StackElement::Key("bar"),
StackElement::Index(3), and StackElement::Key("x") are the
StackElements composing the stack that represents foo.bar[3].x.
Variants
Index(u32)
Key(&'l str)
Trait Implementations
sourceimpl<'l> Clone for StackElement<'l>
impl<'l> Clone for StackElement<'l>
sourcefn clone(&self) -> StackElement<'l>
fn clone(&self) -> StackElement<'l>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'l> Debug for StackElement<'l>
impl<'l> Debug for StackElement<'l>
sourceimpl<'l> PartialEq<StackElement<'l>> for StackElement<'l>
impl<'l> PartialEq<StackElement<'l>> for StackElement<'l>
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &StackElement<'l>) -> bool
fn ne(&self, other: &StackElement<'l>) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Index: 4 bytesKey: 20 bytes