[][src]Struct dyon::ast::If

pub struct If {
    pub cond: Expression,
    pub true_block: Block,
    pub else_if_conds: Vec<Expression>,
    pub else_if_blocks: Vec<Block>,
    pub else_block: Option<Block>,
    pub source_range: Range,
}

If-expression.

Fields

cond: Expression

Condition.

true_block: Block

True block.

else_if_conds: Vec<Expression>

Else-if conditions.

else_if_blocks: Vec<Block>

Else-if blocks.

else_block: Option<Block>

Else block.

source_range: Range

The range in source.

Implementations

impl If[src]

pub fn from_meta_data(
    file: &Arc<String>,
    source: &Arc<String>,
    convert: Convert,
    ignored: &mut Vec<Range>
) -> Result<(Range, If), ()>
[src]

Creates if-expression from meta data.

Trait Implementations

impl Clone for If[src]

impl Debug for If[src]

Auto Trait Implementations

impl !RefUnwindSafe for If

impl Send for If

impl Sync for If

impl Unpin for If

impl !UnwindSafe for If

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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