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