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> PartialEq for StackElement<'l>
[src]

[src]

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

[src]

This method tests for !=.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more