pub enum ForIter {
Range {
start: Box<Expr>,
end: Box<Expr>,
},
Expr(Box<Expr>),
}Expand description
The iteration source for a for loop.
Variants§
Range
Range form: start..end (exclusive end)
Expr(Box<Expr>)
Expression form: for x in expr (array/tensor iteration)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ForIter
impl RefUnwindSafe for ForIter
impl Send for ForIter
impl Sync for ForIter
impl Unpin for ForIter
impl UnsafeUnpin for ForIter
impl UnwindSafe for ForIter
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