#[non_exhaustive]pub struct Var {
pub var_type: VarType,
pub size: u32,
pub code: IdCode,
pub reference: String,
pub index: Option<ReferenceIndex>,
}Expand description
Information on a VCD variable as represented by a $var command.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.var_type: VarTypeType of variable.
size: u32Width in bits.
code: IdCodeInternal code used in value changes to link them back to this variable.
Multiple variables can have the same code if they always have the same
value.
reference: StringName of the variable.
index: Option<ReferenceIndex>Optional bit index or range associated with the reference.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Var
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