Struct darklua_core::nodes::CompoundAssignStatement
source · [−]pub struct CompoundAssignStatement { /* private fields */ }Implementations
sourceimpl CompoundAssignStatement
impl CompoundAssignStatement
pub fn new<V: Into<Variable>, E: Into<Expression>>(
operator: CompoundOperator,
variable: V,
value: E
) -> Self
pub fn with_tokens(self, tokens: CompoundAssignTokens) -> Self
pub fn set_tokens(&mut self, tokens: CompoundAssignTokens)
pub fn get_tokens(&self) -> Option<&CompoundAssignTokens>
pub fn get_operator(&self) -> CompoundOperator
pub fn get_variable(&self) -> &Variable
pub fn get_value(&self) -> &Expression
pub fn mutate_variable(&mut self) -> &mut Variable
pub fn mutate_value(&mut self) -> &mut Expression
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for CompoundAssignStatement
impl Clone for CompoundAssignStatement
sourcefn clone(&self) -> CompoundAssignStatement
fn clone(&self) -> CompoundAssignStatement
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 CompoundAssignStatement
impl Debug for CompoundAssignStatement
sourceimpl From<CompoundAssignStatement> for Statement
impl From<CompoundAssignStatement> for Statement
sourcefn from(statement: CompoundAssignStatement) -> Statement
fn from(statement: CompoundAssignStatement) -> Statement
Converts to this type from the input type.
sourceimpl PartialEq<CompoundAssignStatement> for CompoundAssignStatement
impl PartialEq<CompoundAssignStatement> for CompoundAssignStatement
sourcefn eq(&self, other: &CompoundAssignStatement) -> bool
fn eq(&self, other: &CompoundAssignStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CompoundAssignStatement) -> bool
fn ne(&self, other: &CompoundAssignStatement) -> bool
This method tests for !=.
impl Eq for CompoundAssignStatement
impl StructuralEq for CompoundAssignStatement
impl StructuralPartialEq for CompoundAssignStatement
Auto Trait Implementations
impl RefUnwindSafe for CompoundAssignStatement
impl Send for CompoundAssignStatement
impl Sync for CompoundAssignStatement
impl Unpin for CompoundAssignStatement
impl UnwindSafe for CompoundAssignStatement
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