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