pub enum StatementKind {
Assignment(P<AssignmentNode>),
Return(P<ReturnNode>),
VirtualBranch(P<VirtualBranchNode>),
}
Expand description
Represents an expression node in the AST.
Variants§
Assignment(P<AssignmentNode>)
Assignment
Return(P<ReturnNode>)
Return
VirtualBranch(P<VirtualBranchNode>)
Virtual Branch
Trait Implementations§
Source§impl AstVisitable for StatementKind
impl AstVisitable for StatementKind
Source§impl Clone for StatementKind
impl Clone for StatementKind
Source§fn clone(&self) -> StatementKind
fn clone(&self) -> StatementKind
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 StatementKind
impl Debug for StatementKind
Source§impl<'de> Deserialize<'de> for StatementKind
impl<'de> Deserialize<'de> for StatementKind
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 From<AssignmentNode> for StatementKind
impl From<AssignmentNode> for StatementKind
Source§fn from(id: AssignmentNode) -> Self
fn from(id: AssignmentNode) -> Self
Converts to this type from the input type.
Source§impl From<P<AssignmentNode>> for StatementKind
impl From<P<AssignmentNode>> for StatementKind
Source§fn from(id: P<AssignmentNode>) -> Self
fn from(id: P<AssignmentNode>) -> Self
Converts to this type from the input type.
Source§impl From<P<ReturnNode>> for StatementKind
impl From<P<ReturnNode>> for StatementKind
Source§fn from(id: P<ReturnNode>) -> Self
fn from(id: P<ReturnNode>) -> Self
Converts to this type from the input type.
Source§impl From<P<VirtualBranchNode>> for StatementKind
impl From<P<VirtualBranchNode>> for StatementKind
Source§fn from(id: P<VirtualBranchNode>) -> Self
fn from(id: P<VirtualBranchNode>) -> Self
Converts to this type from the input type.
Source§impl From<ReturnNode> for StatementKind
impl From<ReturnNode> for StatementKind
Source§fn from(id: ReturnNode) -> Self
fn from(id: ReturnNode) -> Self
Converts to this type from the input type.
Source§impl From<StatementKind> for AstKind
impl From<StatementKind> for AstKind
Source§fn from(id: StatementKind) -> Self
fn from(id: StatementKind) -> Self
Converts to this type from the input type.
Source§impl From<VirtualBranchNode> for StatementKind
impl From<VirtualBranchNode> for StatementKind
Source§fn from(id: VirtualBranchNode) -> Self
fn from(id: VirtualBranchNode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StatementKind
impl PartialEq for StatementKind
Source§impl Serialize for StatementKind
impl Serialize for StatementKind
impl Eq for StatementKind
Auto Trait Implementations§
impl Freeze for StatementKind
impl RefUnwindSafe for StatementKind
impl Send for StatementKind
impl Sync for StatementKind
impl Unpin for StatementKind
impl UnwindSafe for StatementKind
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,
§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.