Struct lib_ruby_parser::nodes::Index
source · #[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§
source§impl PartialEq for Index
impl PartialEq for Index
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more