[][src]Struct stir::blocks::IfElse

pub struct IfElse<'block> { /* fields omitted */ }

An IfElse block allows you to execute another block based on a given condition

Methods

impl<'block> IfElse<'block>[src]

pub fn new(
    cond_block: &'block dyn BasicBlock,
    t_block: &'block dyn BasicBlock,
    f_block: Option<&'block dyn BasicBlock>
) -> IfElse<'block>
[src]

Create a new IfElse block. If there is no body to the else, pass None as argument

Trait Implementations

impl<'_> BasicBlock for IfElse<'_>[src]

impl<'_> Debug for IfElse<'_>[src]

Auto Trait Implementations

impl<'block> !RefUnwindSafe for IfElse<'block>

impl<'block> !Send for IfElse<'block>

impl<'block> !Sync for IfElse<'block>

impl<'block> Unpin for IfElse<'block>

impl<'block> !UnwindSafe for IfElse<'block>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.