[−][src]Enum c2rust_transpile::cfg::structures::StructuredAST
Defunctionalized version of StructuredStatement
trait
Variants
Empty
Singleton(S)
Append(Box<StructuredAST<E, P, L, S>>, Box<StructuredAST<E, P, L, S>>)
Goto(L)
Match(E, Vec<(Vec<P>, StructuredAST<E, P, L, S>)>)
If(E, Box<StructuredAST<E, P, L, S>>, Box<StructuredAST<E, P, L, S>>)
GotoTable(Vec<(L, StructuredAST<E, P, L, S>)>, Box<StructuredAST<E, P, L, S>>)
Loop(Option<L>, Box<StructuredAST<E, P, L, S>>)
Exit(ExitStyle, Option<L>)
Trait Implementations
impl<E, P, L, S> StructuredStatement for StructuredAST<E, P, L, S>
[src]
type E = E
An expression
type P = P
A pattern
type L = L
A label
type S = S
An unstructured regular statement
fn empty() -> Self
[src]
fn mk_singleton(stmt: Self::S) -> Self
[src]
fn mk_append(self, second: Self) -> Self
[src]
fn mk_goto(to: Self::L) -> Self
[src]
fn mk_match(cond: Self::E, cases: Vec<(Vec<Self::P>, Self)>) -> Self
[src]
fn mk_if(cond: Self::E, then: Self, else_: Self) -> Self
[src]
fn mk_goto_table(cases: Vec<(Self::L, Self)>, then: Self) -> Self
[src]
fn mk_loop(lbl: Option<Self::L>, body: Self) -> Self
[src]
fn mk_exit(exit_style: ExitStyle, label: Option<Self::L>) -> Self
[src]
Auto Trait Implementations
impl<E, P, L, S> Send for StructuredAST<E, P, L, S> where
E: Send,
L: Send,
P: Send,
S: Send,
E: Send,
L: Send,
P: Send,
S: Send,
impl<E, P, L, S> Sync for StructuredAST<E, P, L, S> where
E: Sync,
L: Sync,
P: Sync,
S: Sync,
E: Sync,
L: Sync,
P: Sync,
S: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Make for T
[src]
impl<T> MaybeResult for T
[src]
impl<'a, T> Captures for T where
T: ?Sized,
[src]
T: ?Sized,