pub enum JumpStatement {
Continue,
Break,
Return(Option<Box<Expr>>),
Discard,
}Expand description
Jump statement.
Variants§
Trait Implementations§
Source§impl Clone for JumpStatement
impl Clone for JumpStatement
Source§fn clone(&self) -> JumpStatement
fn clone(&self) -> JumpStatement
Returns a duplicate of the value. Read more
1.0.0 · 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 JumpStatement
impl Debug for JumpStatement
Source§impl Host for JumpStatement
impl Host for JumpStatement
Source§impl HostMut for JumpStatement
impl HostMut for JumpStatement
Source§fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
Visit an AST node.
Source§impl Parse for JumpStatement
impl Parse for JumpStatement
Source§impl PartialEq for JumpStatement
impl PartialEq for JumpStatement
impl StructuralPartialEq for JumpStatement
Auto Trait Implementations§
impl Freeze for JumpStatement
impl RefUnwindSafe for JumpStatement
impl Send for JumpStatement
impl Sync for JumpStatement
impl Unpin for JumpStatement
impl UnwindSafe for JumpStatement
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