Enum darklua_core::nodes::LastStatement
source · pub enum LastStatement {
Break(Option<Token>),
Continue(Option<Token>),
Return(ReturnStatement),
}Variants§
Implementations§
source§impl LastStatement
impl LastStatement
pub fn new_break() -> Self
pub fn new_continue() -> Self
Trait Implementations§
source§impl Clone for LastStatement
impl Clone for LastStatement
source§fn clone(&self) -> LastStatement
fn clone(&self) -> LastStatement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LastStatement
impl Debug for LastStatement
source§impl From<LastStatement> for Block
impl From<LastStatement> for Block
source§fn from(statement: LastStatement) -> Block
fn from(statement: LastStatement) -> Block
Converts to this type from the input type.
source§impl From<ReturnStatement> for LastStatement
impl From<ReturnStatement> for LastStatement
source§fn from(statement: ReturnStatement) -> Self
fn from(statement: ReturnStatement) -> Self
Converts to this type from the input type.
source§impl PartialEq<LastStatement> for LastStatement
impl PartialEq<LastStatement> for LastStatement
source§fn 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 ==.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more