pub struct Hierarchy { /* private fields */ }Implementations§
source§impl Hierarchy
impl Hierarchy
sourcepub fn iter_vars(&self) -> Iter<'_, Var>
pub fn iter_vars(&self) -> Iter<'_, Var>
Returns an iterator over all variables (at all levels).
sourcepub fn iter_scopes(&self) -> Iter<'_, Scope>
pub fn iter_scopes(&self) -> Iter<'_, Scope>
Returns an iterator over all scopes (at all levels).
sourcepub fn items(&self) -> HierarchyItemIterator<'_>
pub fn items(&self) -> HierarchyItemIterator<'_>
Returns an iterator over all top-level scopes and variables.
sourcepub fn scopes(&self) -> HierarchyScopeRefIterator<'_>
pub fn scopes(&self) -> HierarchyScopeRefIterator<'_>
Returns an iterator over references to all top-level scopes.
sourcepub fn vars(&self) -> HierarchyVarRefIterator<'_>
pub fn vars(&self) -> HierarchyVarRefIterator<'_>
Returns an iterator over references to all top-level variables.
sourcepub fn first_scope(&self) -> Option<&Scope>
pub fn first_scope(&self) -> Option<&Scope>
Returns the first scope that was declared in the underlying file.
sourcepub fn get_unique_signals_vars(&self) -> Vec<Option<Var>>
pub fn get_unique_signals_vars(&self) -> Vec<Option<Var>>
Returns one variable per unique signal in the order of signal handles. The value will be None if there is no var pointing to the given handle.
sourcepub fn size_in_memory(&self) -> usize
pub fn size_in_memory(&self) -> usize
Size of the Hierarchy in bytes.
pub fn date(&self) -> &str
pub fn version(&self) -> &str
pub fn timescale(&self) -> Option<Timescale>
pub fn file_format(&self) -> FileFormat
pub fn lookup_scope<N: AsRef<str>>(&self, names: &[N]) -> Option<ScopeRef>
pub fn lookup_var<N: AsRef<str>>(&self, path: &[N], name: &N) -> Option<VarRef>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Hierarchy
impl Send for Hierarchy
impl Sync for Hierarchy
impl Unpin for Hierarchy
impl UnwindSafe for Hierarchy
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