Enum rustc_serialize::json::StackElement
source · [−]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
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more