pub struct IdxRange<T> { /* private fields */ }Expand description
A contiguous half-open run of indices, start .. end.
Children of an AST node, arguments of a call and parameters of a block are all stored as
runs in one flat vector, so the parent holds eight bytes instead of a Vec.
Implementations§
Trait Implementations§
impl<T> Copy for IdxRange<T>
impl<T> Eq for IdxRange<T>
Auto Trait Implementations§
impl<T> Freeze for IdxRange<T>
impl<T> RefUnwindSafe for IdxRange<T>
impl<T> Send for IdxRange<T>
impl<T> Sync for IdxRange<T>
impl<T> Unpin for IdxRange<T>
impl<T> UnsafeUnpin for IdxRange<T>
impl<T> UnwindSafe for IdxRange<T>
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