pub enum ForBindingIndex {
Named(Spanned<NamePath>),
Range {
arg: NatExpr,
span: Span,
},
}Expand description
The index in a for binding: either a named index or a range(...) expression.
Variants§
Named(Spanned<NamePath>)
A named index: for m: Maneuver { ... } or for m: module.Maneuver { ... }
Range
A range expression: for i: range(3) { ... } or for i: range(N) { ... }
Trait Implementations§
Source§impl Clone for ForBindingIndex
impl Clone for ForBindingIndex
Source§fn clone(&self) -> ForBindingIndex
fn clone(&self) -> ForBindingIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForBindingIndex
impl Debug for ForBindingIndex
Source§impl FormatEquivalent for ForBindingIndex
impl FormatEquivalent for ForBindingIndex
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl Freeze for ForBindingIndex
impl RefUnwindSafe for ForBindingIndex
impl Send for ForBindingIndex
impl Sync for ForBindingIndex
impl Unpin for ForBindingIndex
impl UnsafeUnpin for ForBindingIndex
impl UnwindSafe for ForBindingIndex
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