pub struct Var { /* private fields */ }Implementations§
source§impl Var
impl Var
sourcepub fn full_name(&self, hierarchy: &Hierarchy) -> String
pub fn full_name(&self, hierarchy: &Hierarchy) -> String
Full hierarchical name of the variable.
pub fn var_type(&self) -> VarType
pub fn enum_type<'a>( &self, hierarchy: &'a Hierarchy, ) -> Option<(&'a str, Vec<(&'a str, &'a str)>)>
pub fn vhdl_type_name<'a>(&self, hierarchy: &'a Hierarchy) -> Option<&'a str>
pub fn direction(&self) -> VarDirection
pub fn index(&self) -> Option<VarIndex>
pub fn signal_ref(&self) -> SignalRef
pub fn length(&self) -> Option<u32>
pub fn is_real(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_bit_vector(&self) -> bool
pub fn is_1bit(&self) -> bool
pub fn signal_encoding(&self) -> SignalEncoding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Var
impl RefUnwindSafe for Var
impl Send for Var
impl Sync for Var
impl Unpin for Var
impl UnwindSafe for Var
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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