Enum rustc_serialize::json::StackElement [] [src]

pub enum StackElement<'l> {
    Index(u32),
    Key(&'l str),
}

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

impl<'l> Debug for StackElement<'l>
[src]

Formats the value using the given formatter.

impl<'l> Clone for StackElement<'l>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'l> PartialEq for StackElement<'l>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.