Struct darklua_core::nodes::AssignStatement
source · [−]pub struct AssignStatement { /* private fields */ }Implementations
sourceimpl AssignStatement
impl AssignStatement
pub fn new(variables: Vec<Variable>, values: Vec<Expression>) -> Self
pub fn from_variable<V: Into<Variable>, E: Into<Expression>>(
variable: V,
value: E
) -> Self
pub fn variables_len(&self) -> usize
pub fn values_len(&self) -> usize
pub fn get_variables(&self) -> &Vec<Variable>
pub fn iter_variables(&self) -> impl Iterator<Item = &Variable>
pub fn last_value(&self) -> Option<&Expression>
pub fn iter_values(&self) -> impl Iterator<Item = &Expression>
pub fn iter_mut_values(&mut self) -> impl Iterator<Item = &mut Expression>
pub fn mutate_variables(&mut self) -> &mut Vec<Variable>
pub fn append_assignment<V: Into<Variable>, E: Into<Expression>>(
self,
variable: V,
value: E
) -> Self
pub fn with_tokens(self, tokens: AssignTokens) -> Self
pub fn set_tokens(&mut self, tokens: AssignTokens)
pub fn get_tokens(&self) -> Option<&AssignTokens>
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for AssignStatement
impl Clone for AssignStatement
sourcefn clone(&self) -> AssignStatement
fn clone(&self) -> AssignStatement
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 AssignStatement
impl Debug for AssignStatement
sourceimpl From<AssignStatement> for Statement
impl From<AssignStatement> for Statement
sourcefn from(assign: AssignStatement) -> Statement
fn from(assign: AssignStatement) -> Statement
Converts to this type from the input type.
sourceimpl PartialEq<AssignStatement> for AssignStatement
impl PartialEq<AssignStatement> for AssignStatement
sourcefn eq(&self, other: &AssignStatement) -> bool
fn eq(&self, other: &AssignStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AssignStatement) -> bool
fn ne(&self, other: &AssignStatement) -> bool
This method tests for !=.
impl Eq for AssignStatement
impl StructuralEq for AssignStatement
impl StructuralPartialEq for AssignStatement
Auto Trait Implementations
impl RefUnwindSafe for AssignStatement
impl Send for AssignStatement
impl Sync for AssignStatement
impl Unpin for AssignStatement
impl UnwindSafe for AssignStatement
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