pub enum LoopKind {
Infinite,
While(Ranged<Expression>),
TailWhile {
while: Ranged<Token>,
expression: Ranged<Expression>,
},
For {
pattern: Ranged<Pattern>,
in: Ranged<Token>,
source: Ranged<Expression>,
},
}Expand description
The kind of a loop expression.
Variants§
Infinite
A loop that repeats forever with no conditions.
While(Ranged<Expression>)
A loop that checks the expression each time before the body executes.
TailWhile
A loop that checks the expression each time after the body executes.
Fields
§
expression: Ranged<Expression>The expression to check.
For
A loop over an iterable or indexable.
Trait Implementations§
impl StructuralPartialEq for LoopKind
Auto Trait Implementations§
impl Freeze for LoopKind
impl RefUnwindSafe for LoopKind
impl Send for LoopKind
impl Sync for LoopKind
impl Unpin for LoopKind
impl UnwindSafe for LoopKind
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
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)