Struct lib_ruby_parser::nodes::Pair [−][src]
#[repr(C)]pub struct Pair { pub key: Box<Node>, pub value: Box<Node>, pub operator_l: Loc, pub expression_l: Loc, }
Expand description
Represents a key/value pair (e.g. a part of the Hash node)
Fields
key: Box<Node>Key of the pair
value: Box<Node>Value of the pair
operator_l: LocLocation of the : or => operator
{ foo: bar }
~
{ :foo => bar }
~~
expression_l: LocLocation of the full expression
{ foo: bar }
~~~~~~~~
{ :foo => bar }
~~~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Pairimpl UnwindSafe for PairBlanket Implementations
Mutably borrows from an owned value. Read more