#[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§
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