Enum darklua_core::nodes::LastStatement
source · [−]pub enum LastStatement {
Break(Option<Token>),
Continue(Option<Token>),
Return(ReturnStatement),
}Variants
Break(Option<Token>)
Continue(Option<Token>)
Return(ReturnStatement)
Implementations
sourceimpl LastStatement
impl LastStatement
pub fn new_break() -> Self
pub fn new_continue() -> Self
Trait Implementations
sourceimpl Clone for LastStatement
impl Clone for LastStatement
sourcefn clone(&self) -> LastStatement
fn clone(&self) -> LastStatement
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 LastStatement
impl Debug for LastStatement
sourceimpl From<LastStatement> for Block
impl From<LastStatement> for Block
sourcefn from(statement: LastStatement) -> Block
fn from(statement: LastStatement) -> Block
Converts to this type from the input type.
sourceimpl From<ReturnStatement> for LastStatement
impl From<ReturnStatement> for LastStatement
sourcefn from(statement: ReturnStatement) -> Self
fn from(statement: ReturnStatement) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<LastStatement> for LastStatement
impl PartialEq<LastStatement> for LastStatement
sourcefn eq(&self, other: &LastStatement) -> bool
fn eq(&self, other: &LastStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &LastStatement) -> bool
fn ne(&self, other: &LastStatement) -> bool
This method tests for !=.
impl Eq for LastStatement
impl StructuralEq for LastStatement
impl StructuralPartialEq for LastStatement
Auto Trait Implementations
impl RefUnwindSafe for LastStatement
impl Send for LastStatement
impl Sync for LastStatement
impl Unpin for LastStatement
impl UnwindSafe for LastStatement
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