pub struct ControlFlowNode { /* private fields */ }
Expand description
Represents a metadata node in the AST
Implementations§
Source§impl ControlFlowNode
impl ControlFlowNode
Sourcepub fn new<E, V>(
ty: ControlFlowType,
condition: Option<E>,
body: Vec<V>,
) -> Self
pub fn new<E, V>( ty: ControlFlowType, condition: Option<E>, body: Vec<V>, ) -> Self
Sourcepub fn ty(&self) -> &ControlFlowType
pub fn ty(&self) -> &ControlFlowType
Returns the type of the ControlFlowNode.
Trait Implementations§
Source§impl Clone for ControlFlowNode
impl Clone for ControlFlowNode
Source§fn clone(&self) -> ControlFlowNode
fn clone(&self) -> ControlFlowNode
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 ControlFlowNode
impl Debug for ControlFlowNode
Source§impl<'de> Deserialize<'de> for ControlFlowNode
impl<'de> Deserialize<'de> for ControlFlowNode
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<ControlFlowNode> for AstKind
impl From<ControlFlowNode> for AstKind
Source§fn from(id: ControlFlowNode) -> Self
fn from(id: ControlFlowNode) -> Self
Converts to this type from the input type.
Source§impl From<ControlFlowNode> for P<AstKind>
impl From<ControlFlowNode> for P<AstKind>
Source§fn from(id: ControlFlowNode) -> Self
fn from(id: ControlFlowNode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ControlFlowNode
impl PartialEq for ControlFlowNode
Source§impl Serialize for ControlFlowNode
impl Serialize for ControlFlowNode
impl Eq for ControlFlowNode
Auto Trait Implementations§
impl Freeze for ControlFlowNode
impl RefUnwindSafe for ControlFlowNode
impl Send for ControlFlowNode
impl Sync for ControlFlowNode
impl Unpin for ControlFlowNode
impl UnwindSafe for ControlFlowNode
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.