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
impl StructuralPartialEq for Index
Auto Trait Implementations
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more