pub enum Statement<T>where
T: TypeSet,{
VariableDefinition(VariableDefinition<T>),
Return(ReturnWithValue<T>),
EmptyReturn(EmptyReturn),
If(If<T>),
Loop(Loop<T>),
Break(Break),
Continue(Continue),
Scope(Body<T>),
Expression {
expression: Expression<T>,
semicolon: Token,
},
ImplicitReturn(RightHandExpression<T>),
}Variants§
VariableDefinition(VariableDefinition<T>)
Return(ReturnWithValue<T>)
EmptyReturn(EmptyReturn)
If(If<T>)
Loop(Loop<T>)
Break(Break)
Continue(Continue)
Scope(Body<T>)
Expression
ImplicitReturn(RightHandExpression<T>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Statement<T>
impl<T> RefUnwindSafe for Statement<T>
impl<T> Send for Statement<T>
impl<T> Sync for Statement<T>
impl<T> Unpin for Statement<T>
impl<T> UnwindSafe for Statement<T>
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