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>
source§impl Hierarchy
impl Hierarchy
pub fn num_unique_signals(&self) -> usize
sourcepub fn get_signal_tpe(&self, signal_idx: SignalRef) -> Option<SignalEncoding>
pub fn get_signal_tpe(&self, signal_idx: SignalRef) -> Option<SignalEncoding>
Retrieves the length of a signal identified by its id by looking up a variable that refers to the signal.
pub fn get_slice_info(&self, signal_idx: SignalRef) -> Option<SignalSlice>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hierarchy
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more