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: LocLocation of open bracket
foo[1, 2, 3]
~
end_l: LocLocation of closing bracket
foo[1, 2, 3]
~
expression_l: LocLocation of the full expression
foo[1, 2, 3]
~~~~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Indeximpl UnwindSafe for IndexBlanket Implementations
Mutably borrows from an owned value. Read more