pub enum ForHead {
Range {
start: Box<Expr>,
end: Box<Expr>,
},
Expr(Box<Expr>),
}Expand description
The head of a for loop (spec 2.4): a half-open integer range
(a..b), parsed only here since ranges exist nowhere else in Varyk, or
an expression iterated element by element as a Vec. ..= never
produces a ForHead::Range: it is V0001, milestone 4.
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