Struct darklua_core::nodes::IfStatement [−][src]
pub struct IfStatement { /* fields omitted */ }Implementations
impl IfStatement[src]
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 get_branches(&self) -> &Vec<IfBranch>[src]
pub fn branch_count(&self) -> usize[src]
pub fn mutate_branches(&mut self) -> &mut Vec<IfBranch>[src]
pub fn get_else_block(&self) -> Option<&Block>[src]
pub fn mutate_else_block(&mut self) -> &mut Option<Block>[src]
pub fn take_else_block(&mut self) -> Option<Block>[src]
Trait Implementations
impl Clone for IfStatement[src]
impl Clone for IfStatement[src]fn clone(&self) -> IfStatement[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Eq for IfStatement[src]
impl Eq for IfStatement[src]impl From<IfStatement> for Statement[src]
impl From<IfStatement> for Statement[src]fn from(if_statement: IfStatement) -> Statement[src]
impl PartialEq<IfStatement> for IfStatement[src]
impl PartialEq<IfStatement> for IfStatement[src]fn eq(&self, other: &IfStatement) -> bool[src]
fn ne(&self, other: &IfStatement) -> bool[src]
impl StructuralEq for IfStatement[src]
impl StructuralEq for IfStatement[src]impl StructuralPartialEq for IfStatement[src]
impl StructuralPartialEq for IfStatement[src]Auto Trait Implementations
impl RefUnwindSafe for IfStatement
impl RefUnwindSafe for IfStatementimpl Send for IfStatement
impl Send for IfStatementimpl Sync for IfStatement
impl Sync for IfStatementimpl Unpin for IfStatement
impl Unpin for IfStatementimpl UnwindSafe for IfStatement
impl UnwindSafe for IfStatement