pub enum ForHead {
Range {
start: Box<Expr>,
end: Box<Expr>,
inclusive: bool,
},
Expr(Box<Expr>),
}Expand description
The head of a for loop (spec 2.4): an integer range, half-open
(a..b) or inclusive (a..=b, M4 spec 2.11), parsed only here since
an expression range exists nowhere else in Varyk, or an expression
iterated element by element as a Vec.
Variants§
Trait Implementations§
impl StructuralPartialEq for ForHead
Auto Trait Implementations§
impl Freeze for ForHead
impl RefUnwindSafe for ForHead
impl Send for ForHead
impl Sync for ForHead
impl Unpin for ForHead
impl UnsafeUnpin for ForHead
impl UnwindSafe for ForHead
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