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

Index
Key

Trait Implementations

Derived Implementations

impl<'l> Debug for StackElement<'l>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<'l> Clone for StackElement<'l>

fn clone(&self) -> StackElement<'l>

fn clone_from(&mut self, source: &Self)

impl<'l> PartialEq for StackElement<'l>

fn eq(&self, __arg_0: &StackElement<'l>) -> bool

fn ne(&self, __arg_0: &StackElement<'l>) -> bool