[−][src]Trait c2rust_transpile::cfg::structures::StructuredStatement
This is precisely what we need to construct structured statements
Associated Types
Loading content...Required methods
fn empty() -> Self
An empty statement
fn mk_singleton(stmt: Self::S) -> Self
Project a single statement into a structured statement
fn mk_append(self, second: Self) -> Self
Execute one statement, then the other
fn mk_goto(to: Self::L) -> Self
Jump to a label
fn mk_match(cond: Self::E, cases: Vec<(Vec<Self::P>, Self)>) -> Self
Make a match
statement
fn mk_if(cond: Self::E, then: Self, else_: Self) -> Self
Make an if
statement
fn mk_goto_table(cases: Vec<(Self::L, Self)>, then: Self) -> Self
Make a goto
table
fn mk_loop(lbl: Option<Self::L>, body: Self) -> Self
Make some sort of loop
fn mk_exit(exit_style: ExitStyle, label: Option<Self::L>) -> Self
Make an exit from a loop