pub enum Statement {
Show 13 variants
Labeled(Node<LabeledStatement>),
Compound(Vec<Node<BlockItem>>),
Expression(Option<Box<Node<Expression>>>),
If(Node<IfStatement>),
Switch(Node<SwitchStatement>),
While(Node<WhileStatement>),
DoWhile(Node<DoWhileStatement>),
For(Node<ForStatement>),
Goto(Node<Identifier>),
Continue,
Break,
Return(Option<Box<Node<Expression>>>),
Asm(Node<AsmStatement>),
}
Expand description
Element of a function body
(C11 6.8)
Variants§
Labeled(Node<LabeledStatement>)
Compound(Vec<Node<BlockItem>>)
Expression(Option<Box<Node<Expression>>>)
If(Node<IfStatement>)
Switch(Node<SwitchStatement>)
While(Node<WhileStatement>)
DoWhile(Node<DoWhileStatement>)
For(Node<ForStatement>)
Goto(Node<Identifier>)
Continue
Break
Return(Option<Box<Node<Expression>>>)
Asm(Node<AsmStatement>)
Vendor specific inline assembly extensions
Trait Implementations§
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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