[][src]Struct darklua_core::nodes::IfStatement

pub struct IfStatement { /* fields omitted */ }

Methods

impl IfStatement[src]

pub fn new(branches: Vec<IfBranch>, else_block: Option<Block>) -> Self[src]

pub fn create(condition: Expression, block: Block) -> Self[src]

pub fn with_branch(self, condition: Expression, block: Block) -> Self[src]

pub fn with_else_block(self, block: Block) -> Self[src]

pub fn mutate_all_blocks(&mut self) -> Vec<&mut Block>[src]

pub fn mutate_branchs(&mut self) -> &mut Vec<IfBranch>[src]

pub fn mutate_else_block(&mut self) -> &mut Option<Block>[src]

Trait Implementations

impl Clone for IfStatement[src]

impl Debug for IfStatement[src]

impl Eq for IfStatement[src]

impl From<(Vec<(Expression, Block)>, Option<Block>)> for IfStatement[src]

impl From<IfStatement> for Statement[src]

impl PartialEq<IfStatement> for IfStatement[src]

impl StructuralEq for IfStatement[src]

impl StructuralPartialEq for IfStatement[src]

impl ToLua for IfStatement[src]

Auto Trait Implementations

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.