pub enum FuncStmt {
Show 15 variants
Return {
value: Option<Node<Expr>>,
},
VarDecl {
mut_: Option<Span>,
target: Node<VarDeclTarget>,
typ: Node<TypeDesc>,
value: Option<Node<Expr>>,
},
ConstantDecl {
name: Node<SmolStr>,
typ: Node<TypeDesc>,
value: Node<Expr>,
},
Assign {
target: Node<Expr>,
value: Node<Expr>,
},
AugAssign {
target: Node<Expr>,
op: Node<BinOperator>,
value: Node<Expr>,
},
For {
target: Node<SmolStr>,
iter: Node<Expr>,
body: Vec<Node<FuncStmt>>,
},
While {
test: Node<Expr>,
body: Vec<Node<FuncStmt>>,
},
If {
test: Node<Expr>,
body: Vec<Node<FuncStmt>>,
or_else: Vec<Node<FuncStmt>>,
},
Match {
expr: Node<Expr>,
arms: Vec<Node<MatchArm>>,
},
Assert {
test: Node<Expr>,
msg: Option<Node<Expr>>,
},
Expr {
value: Node<Expr>,
},
Break,
Continue,
Revert {
error: Option<Node<Expr>>,
},
Unsafe(Vec<Node<FuncStmt>>),
}
Variants§
Return
VarDecl
ConstantDecl
Assign
AugAssign
For
While
If
Match
Assert
Expr
Break
Continue
Revert
Unsafe(Vec<Node<FuncStmt>>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FuncStmt
impl<'de> Deserialize<'de> for FuncStmt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FuncStmt
impl StructuralPartialEq for FuncStmt
Auto Trait Implementations§
impl Freeze for FuncStmt
impl RefUnwindSafe for FuncStmt
impl Send for FuncStmt
impl Sync for FuncStmt
impl Unpin for FuncStmt
impl UnwindSafe for FuncStmt
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.