Struct darklua_core::nodes::GenericForStatement
source · [−]pub struct GenericForStatement { /* private fields */ }Implementations
sourceimpl GenericForStatement
impl GenericForStatement
pub fn new<B: Into<Block>>(
identifiers: Vec<Identifier>,
expressions: Vec<Expression>,
block: B
) -> Self
pub fn with_tokens(self, tokens: GenericForTokens) -> Self
pub fn set_tokens(&mut self, tokens: GenericForTokens)
pub fn get_tokens(&self) -> Option<&GenericForTokens>
pub fn get_block(&self) -> &Block
pub fn get_identifiers(&self) -> &Vec<Identifier>
pub fn iter_identifiers(&self) -> impl Iterator<Item = &Identifier>
pub fn get_expressions(&self) -> &Vec<Expression>
pub fn iter_expressions(&self) -> impl Iterator<Item = &Expression>
pub fn iter_mut_identifiers(&mut self) -> impl Iterator<Item = &mut Identifier>
pub fn iter_mut_expressions(&mut self) -> impl Iterator<Item = &mut Expression>
pub fn mutate_block(&mut self) -> &mut Block
pub fn identifiers_len(&self) -> usize
pub fn expressions_len(&self) -> usize
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for GenericForStatement
impl Clone for GenericForStatement
sourcefn clone(&self) -> GenericForStatement
fn clone(&self) -> GenericForStatement
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 GenericForStatement
impl Debug for GenericForStatement
sourceimpl From<GenericForStatement> for Statement
impl From<GenericForStatement> for Statement
sourcefn from(generic_for: GenericForStatement) -> Statement
fn from(generic_for: GenericForStatement) -> Statement
Converts to this type from the input type.
sourceimpl PartialEq<GenericForStatement> for GenericForStatement
impl PartialEq<GenericForStatement> for GenericForStatement
sourcefn eq(&self, other: &GenericForStatement) -> bool
fn eq(&self, other: &GenericForStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &GenericForStatement) -> bool
fn ne(&self, other: &GenericForStatement) -> bool
This method tests for !=.
impl Eq for GenericForStatement
impl StructuralEq for GenericForStatement
impl StructuralPartialEq for GenericForStatement
Auto Trait Implementations
impl RefUnwindSafe for GenericForStatement
impl Send for GenericForStatement
impl Sync for GenericForStatement
impl Unpin for GenericForStatement
impl UnwindSafe for GenericForStatement
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