Type Alias VariableRef

Source
pub type VariableRef = VariableRef<VarId, ScopeId>;

Aliased Type§

pub struct VariableRef {
    pub path: ScopeRef<ScopeId>,
    pub name: String,
    pub id: VarId,
}

Fields§

§path: ScopeRef<ScopeId>

Path in the scope hierarchy to where this variable resides

§name: String

Name of the variable in its hierarchy

§id: VarId

Backend specific numeric ID. Performance optimization.

Trait Implementations§

Source§

impl VariableRefExt for VariableRef

Source§

fn full_path_string(&self) -> String

A human readable full path to the scope

Source§

fn new(path: ScopeRef, name: String) -> Self

Source§

fn new_with_id(path: ScopeRef, name: String, id: VarId) -> Self

Source§

fn from_hierarchy_string(s: &str) -> Self

Source§

fn full_path(&self) -> Vec<String>

Source§

fn from_strs(s: &[&str]) -> Self

Source§

fn clear_id(&mut self)

Source§

fn cxxrtl_repr(&self) -> String