pub type VariableMeta = VariableMeta<VarId, ScopeId>;Aliased Type§
pub struct VariableMeta {
pub var: VariableRef<VarId, ScopeId>,
pub num_bits: Option<u32>,
pub variable_type: Option<VariableType>,
pub variable_type_name: Option<String>,
pub index: Option<VariableIndex>,
pub direction: Option<VariableDirection>,
pub enum_map: HashMap<String, String>,
pub encoding: VariableEncoding,
}Fields§
§var: VariableRef<VarId, ScopeId>Reference to the variable.
num_bits: Option<u32>Number of bits for the variable, if applicable.
variable_type: Option<VariableType>Type of the variable in the HDL (on a best effort basis).
variable_type_name: Option<String>Type name of variable, if available.
index: Option<VariableIndex>Index information for the variable, if available.
direction: Option<VariableDirection>Direction of the variable, if available.
enum_map: HashMap<String, String>For enum variables, either an enumerated type in VHDL or an enum in SystemVerilog, a mapping from enum option names to their string representations.
encoding: VariableEncodingIndicates how the variable is stored. A variable of “type” boolean for example
could be stored as a String or as a BitVector.
Trait Implementations§
Source§impl VariableMetaExt for VariableMeta
impl VariableMetaExt for VariableMeta
Source§fn has_signed_integer_type_name(&self) -> bool
fn has_signed_integer_type_name(&self) -> bool
Check if the variable type name indicates signed integer type
Source§fn has_signed_fixedpoint_type_name(&self) -> bool
fn has_signed_fixedpoint_type_name(&self) -> bool
Check if the variable type name indicates signed fixed-point type
Source§fn has_unsigned_integer_type_name(&self) -> bool
fn has_unsigned_integer_type_name(&self) -> bool
Check if the variable type name indicates unsigned integer type
Source§fn has_unsigned_fixedpoint_type_name(&self) -> bool
fn has_unsigned_fixedpoint_type_name(&self) -> bool
Check if the variable type name indicates unsigned fixed-point type