pub enum HirIndexComponent {
Single(Expr),
Range {
start: Option<Box<Expr>>,
end: Option<Box<Expr>>,
step: Option<Box<Expr>>,
inclusive: bool,
},
Full,
}Expand description
A single component of a multi-dimensional index in HIR.
Variants§
Single(Expr)
Single index expression
Range
Range with optional start, end, step
Full
Full dimension (select all elements along this axis)
Trait Implementations§
Source§impl Clone for HirIndexComponent
impl Clone for HirIndexComponent
Source§fn clone(&self) -> HirIndexComponent
fn clone(&self) -> HirIndexComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HirIndexComponent
impl RefUnwindSafe for HirIndexComponent
impl Send for HirIndexComponent
impl Sync for HirIndexComponent
impl Unpin for HirIndexComponent
impl UnwindSafe for HirIndexComponent
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