Type Alias ScopeRef

Source
pub type ScopeRef = ScopeRef<ScopeId>;

Aliased Type§

pub struct ScopeRef {
    pub strs: Vec<String>,
    pub id: ScopeId,
}

Fields§

§strs: Vec<String>§id: ScopeId

Backend specific numeric ID. Performance optimization.

Trait Implementations§

Source§

impl ScopeRefExt for ScopeRef

Source§

fn from_hierarchy_string(s: &str) -> Self

Creates a ScopeRef from a string with each scope separated by .

Source§

fn empty() -> Self

Source§

fn from_strs<S: ToString>(s: &[S]) -> Self

Source§

fn from_strs_with_id(s: &[impl ToString], id: ScopeId) -> Self

Source§

fn with_subscope(&self, subscope: String, id: ScopeId) -> Self

Source§

fn name(&self) -> String

Source§

fn strs(&self) -> &[String]

Source§

fn with_id(&self, id: ScopeId) -> Self

Source§

fn cxxrtl_repr(&self) -> String

Source§

fn has_empty_strs(&self) -> bool