#[non_exhaustive]pub enum Command {
Show 15 variants
Comment(String),
Date(String),
Version(String),
Timescale(u32, TimescaleUnit),
ScopeDef(ScopeType, String),
Upscope,
VarDef(VarType, u32, IdCode, String, Option<ReferenceIndex>),
Enddefinitions,
Timestamp(u64),
ChangeScalar(IdCode, Value),
ChangeVector(IdCode, Vector),
ChangeReal(IdCode, f64),
ChangeString(IdCode, String),
Begin(SimulationCommand),
End(SimulationCommand),
}
Expand description
An element in a VCD file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Comment(String)
A $comment
command
Date(String)
A $date
command
Version(String)
A $version
command
Timescale(u32, TimescaleUnit)
A $timescale
command
ScopeDef(ScopeType, String)
A $scope
command
Upscope
An $upscope
command
VarDef(VarType, u32, IdCode, String, Option<ReferenceIndex>)
A $var
command
Enddefinitions
An $enddefinitions
command
Timestamp(u64)
A #xxx
timestamp
ChangeScalar(IdCode, Value)
A 0a
change to a scalar variable
ChangeVector(IdCode, Vector)
A b0000 a
change to a vector variable
ChangeReal(IdCode, f64)
A r1.234 a
change to a real variable
ChangeString(IdCode, String)
A sSTART a
change to a string variable
Begin(SimulationCommand)
A beginning of a simulation command. Unlike header commands, which are parsed atomically, simulation commands emit a Begin, followed by the data changes within them, followed by End.
End(SimulationCommand)
An end of a simulation command.
Trait Implementations§
source§impl PartialEq<Command> for Command
impl PartialEq<Command> for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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