Struct lib_ruby_parser::nodes::Index [−][src]
#[repr(C)]pub struct Index { pub recv: Box<Node>, pub indexes: Vec<Node>, pub begin_l: Loc, pub end_l: Loc, pub expression_l: Loc, }
Expand description
Represents indexing operation (i.e. foo[1,2,3]
)
Fields
recv: Box<Node>
Receiver of indexing
indexes: Vec<Node>
A list of indexes
begin_l: Loc
Location of open bracket
foo[1, 2, 3]
~
end_l: Loc
Location of closing bracket
foo[1, 2, 3]
~
expression_l: Loc
Location of the full expression
foo[1, 2, 3]
~~~~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Index
impl UnwindSafe for Index
Blanket Implementations
Mutably borrows from an owned value. Read more