[][src]Enum c2rust_transpile::cfg::structures::StructuredAST

pub enum StructuredAST<E, P, L, S> {
    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(ExitStyleOption<L>),
}

Defunctionalized version of StructuredStatement trait

Variants

EmptySingleton(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(ExitStyleOption<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

Auto Trait Implementations

impl<E, P, L, S> Send for StructuredAST<E, P, L, S> where
    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

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Make for T[src]

impl<T> MaybeResult for T[src]

impl<'a, T> Captures for T where
    T: ?Sized
[src]

impl<T> Erased for T