Struct rtlola_parser::ast::NodeId
source · pub struct NodeId {
pub id: u32,
pub prime_counter: u32,
}
Expand description
Every node in the Ast gets a unique id, represented by a 32bit unsigned integer. They are used in the later analysis phases to store information about Ast nodes.
Fields§
§id: u32
The actual unique id.
prime_counter: u32
Counter to track transformations on this node. Increased during syntactic sugar removal.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeId
impl<'de> Deserialize<'de> for NodeId
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 Ord for NodeId
impl Ord for NodeId
source§impl PartialEq<NodeId> for NodeId
impl PartialEq<NodeId> for NodeId
source§impl PartialOrd<NodeId> for NodeId
impl PartialOrd<NodeId> for NodeId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more