pub enum Statement {
FnCallStmt(Box<FnCallStmt>),
VarStoreStmt(Box<VarStoreStmt>),
VarDefineStmt(Box<VarDefineStmt>),
If(Box<If>),
While(Box<While>),
Return(Box<Return>),
Comment(Box<Comment>),
CodeBlock(Box<CodeBlock>),
}Variants§
FnCallStmt(Box<FnCallStmt>)
VarStoreStmt(Box<VarStoreStmt>)
VarDefineStmt(Box<VarDefineStmt>)
If(Box<If>)
While(Box<While>)
Return(Box<Return>)
Comment(Box<Comment>)
CodeBlock(Box<CodeBlock>)
Trait Implementations§
Source§impl From<FnCallStmt> for Statement
impl From<FnCallStmt> for Statement
Source§fn from(v: FnCallStmt) -> Statement
fn from(v: FnCallStmt) -> Statement
Converts to this type from the input type.
Source§impl From<VarDefineStmt> for Statement
impl From<VarDefineStmt> for Statement
Source§fn from(v: VarDefineStmt) -> Statement
fn from(v: VarDefineStmt) -> Statement
Converts to this type from the input type.
Source§impl From<VarStoreStmt> for Statement
impl From<VarStoreStmt> for Statement
Source§fn from(v: VarStoreStmt) -> Statement
fn from(v: VarStoreStmt) -> Statement
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more