pub trait NetlistView {
// Required methods
fn registration_order(&self) -> Vec<InstanceId>;
fn hierarchical_path(&self, id: InstanceId) -> &str;
fn resolve_hier_path(&self, path: &str) -> Option<InstantiatedSignalId>;
fn dedup_key(&self, tmpl: TemplateId) -> &TemplateKey;
fn tick_ns_per_unit(&self) -> u64;
fn instance(&self, id: InstanceId) -> &InstanceNode;
fn template(&self, id: TemplateId) -> &Template;
}Required Methods§
fn registration_order(&self) -> Vec<InstanceId>
fn hierarchical_path(&self, id: InstanceId) -> &str
fn resolve_hier_path(&self, path: &str) -> Option<InstantiatedSignalId>
fn dedup_key(&self, tmpl: TemplateId) -> &TemplateKey
Sourcefn tick_ns_per_unit(&self) -> u64
fn tick_ns_per_unit(&self) -> u64
The single source of truth for the scheduler’s time precision (netlist-analysis.md Decision 8).
Sourcefn instance(&self, id: InstanceId) -> &InstanceNode
fn instance(&self, id: InstanceId) -> &InstanceNode
NL-024 (Task 4): the instance-level query half of the public surface
netlist-analysis.md’s impl<'d> Netlist<'d> specifies. Purely
additive to this trait (Deviation #1) — every existing method keeps
its exact signature.
Sourcefn template(&self, id: TemplateId) -> &Template
fn template(&self, id: TemplateId) -> &Template
NL-024 (Task 4): the template-level query half.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".