Struct darklua_core::nodes::ElseIfExpressionBranch
source · [−]pub struct ElseIfExpressionBranch { /* private fields */ }Implementations
sourceimpl ElseIfExpressionBranch
impl ElseIfExpressionBranch
pub fn new<E: Into<Expression>, E2: Into<Expression>>(
condition: E,
result: E2
) -> Self
pub fn set_tokens(&mut self, tokens: ElseIfExpressionBranchTokens)
pub fn get_tokens(&self) -> Option<&ElseIfExpressionBranchTokens>
pub fn get_condition(&self) -> &Expression
pub fn mutate_condition(&mut self) -> &mut Expression
pub fn get_result(&self) -> &Expression
pub fn mutate_result(&mut self) -> &mut Expression
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for ElseIfExpressionBranch
impl Clone for ElseIfExpressionBranch
sourcefn clone(&self) -> ElseIfExpressionBranch
fn clone(&self) -> ElseIfExpressionBranch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ElseIfExpressionBranch
impl Debug for ElseIfExpressionBranch
sourceimpl PartialEq<ElseIfExpressionBranch> for ElseIfExpressionBranch
impl PartialEq<ElseIfExpressionBranch> for ElseIfExpressionBranch
sourcefn eq(&self, other: &ElseIfExpressionBranch) -> bool
fn eq(&self, other: &ElseIfExpressionBranch) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ElseIfExpressionBranch) -> bool
fn ne(&self, other: &ElseIfExpressionBranch) -> bool
This method tests for !=.
impl Eq for ElseIfExpressionBranch
impl StructuralEq for ElseIfExpressionBranch
impl StructuralPartialEq for ElseIfExpressionBranch
Auto Trait Implementations
impl RefUnwindSafe for ElseIfExpressionBranch
impl Send for ElseIfExpressionBranch
impl Sync for ElseIfExpressionBranch
impl Unpin for ElseIfExpressionBranch
impl UnwindSafe for ElseIfExpressionBranch
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