Re-exportsยง
pub use crate::translator::BasicTranslator;pub use crate::translator::Translator;pub use crate::translator::VariableNameInfo;pub use crate::translator::WaveSource;pub use crate::translator::translates_all_bit_types;pub use crate::variable_index::VariableIndex;
Modulesยง
- field_
ref ๐ - plugin_
types - result ๐
- scope_
ref ๐ - translator
- Definition of the main
Translatortrait and the simplified versionBasicTranslator. - variable_
index - variable_
meta ๐ - variable_
ref ๐
Structsยง
- Field
Ref - A reference to a field of a larger variable, such as a field in a struct. The fields are the recursive path to the fields inside the (translated) root
- Hier
Format Result - Plugin
Config - Scope
Ref - SubField
Flat Translation Result - SubField
Translation Result - Translated
Value - Translation
Result - Variable
Meta - Additional information about a variable in the waveform.
- Variable
Ref
Enumsยง
- Translation
Preference - Value
Kind - The kind of a translated value, used to determine how to color it in the UI.
- Value
Repr - The representation of the value, compound values can be be represented by the repr of their subfields
- Variable
Direction - Variable
Encoding - Variable values can be encoded in different ways in the waveform source.
- Variable
Info - Static information about the structure of a variable.
- Variable
Type - The type of variable based on information from the waveform source.
- Variable
Value - The value of a variable in the waveform as obtained from the waveform source.
Constantsยง
- NAN_
HIGHIMP - Quiet NaN representing high-impedance (Z) values in analog signals.
- NAN_
UNDEF - Quiet NaN representing undefined (X) values in analog signals.
Functionsยง
- biguint_
to_ f64 - Convert
BigUintto f64 efficiently. - check_
vector_ variable - Turn vector variable string into name and corresponding color if it
includes values other than 0 and 1. If only 0 and 1, return None.
Related to
kind_for_binary_representation, which returns only the kind. - extend_
string - VCD bit extension.
This function extends the given string
valto matchnum_bitsby adding leading characters according to VCD rules: - is_
nan_ highimp - Check NaN payload to determine if it represents
HighImp. - kind_
for_ binary_ representation - Return kind for a binary representation.
Related to
check_vector_variable, which returns the same kinds, but also a string. For strings containing only 0 and 1, this function returnsValueKind::Normal. - parse_
numeric_ string - Parse a translated string value into a numeric f64.
- parse_
value_ to_ numeric - Parse
VariableValueto f64 using a conversion function.