Enum rustc_serialize::json::StackElement [−][src]
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)
Tuple Fields of Index
0: u32
Key(&'l str)
Tuple Fields of Key
0: &'l str
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. 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