pub enum Statement {
Compound(Box<CompoundStatement>),
Simple(Box<SimpleStatement>),
}
Expand description
Statement.
Variants§
Compound(Box<CompoundStatement>)
Simple(Box<SimpleStatement>)
Implementations§
source§impl Statement
impl Statement
sourcepub fn new_case<C, S>(case: C, statements: S) -> Selfwhere
C: Into<CaseLabel>,
S: IntoIterator<Item = Statement>,
pub fn new_case<C, S>(case: C, statements: S) -> Selfwhere
C: Into<CaseLabel>,
S: IntoIterator<Item = Statement>,
Create a case-label sequence of nested statements.
sourcepub fn declare_var<T, N, A, I>(
ty: T,
name: N,
array_specifier: A,
initializer: I
) -> Selfwhere
T: Into<FullySpecifiedType>,
N: Into<Identifier>,
A: Into<Option<ArraySpecifier>>,
I: Into<Option<Initializer>>,
pub fn declare_var<T, N, A, I>(
ty: T,
name: N,
array_specifier: A,
initializer: I
) -> Selfwhere
T: Into<FullySpecifiedType>,
N: Into<Identifier>,
A: Into<Option<ArraySpecifier>>,
I: Into<Option<Initializer>>,
Declare a new variable.
ty
is the type of the variable, name
the name of the binding to create,
array_specifier
an optional argument to make your binding an array and
initializer