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
source§impl PartialEq for FuncStmt
impl PartialEq for FuncStmt
impl Eq for FuncStmt
impl StructuralEq for FuncStmt
impl StructuralPartialEq for FuncStmt
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.