Struct darklua_core::nodes::IfBranch
source · [−]pub struct IfBranch { /* private fields */ }Implementations
sourceimpl IfBranch
impl IfBranch
pub fn new<E: Into<Expression>, B: Into<Block>>(condition: E, block: B) -> Self
pub fn empty<E: Into<Expression>>(condition: E) -> Self
pub fn with_tokens(self, tokens: IfBranchTokens) -> Self
pub fn set_tokens(&mut self, tokens: IfBranchTokens)
pub fn get_tokens(&self) -> Option<&IfBranchTokens>
pub fn get_block(&self) -> &Block
pub fn get_condition(&self) -> &Expression
pub fn mutate_block(&mut self) -> &mut Block
pub fn mutate_condition(&mut self) -> &mut Expression
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
impl Eq for IfBranch
impl StructuralEq for IfBranch
impl StructuralPartialEq for IfBranch
Auto Trait Implementations
impl RefUnwindSafe for IfBranch
impl Send for IfBranch
impl Sync for IfBranch
impl Unpin for IfBranch
impl UnwindSafe for IfBranch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more