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: Loc
Location of the :
or =>
operator
{ foo: bar }
~
{ :foo => bar }
~~
expression_l: Loc
Location of the full expression
{ foo: bar }
~~~~~~~~
{ :foo => bar }
~~~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Pair
impl UnwindSafe for Pair
Blanket Implementations
Mutably borrows from an owned value. Read more