Struct vcd::Writer [] [src]

pub struct Writer<'w> { /* fields omitted */ }

Struct wrapping an io::Write with methods for writing VCD commands and data.

Methods

impl<'s> Writer<'s>
[src]

Create a Writer, wrapping an io::Write

let mut buf = Vec::new();
let mut vcd = vcd::Writer::new(&mut buf);

Write a header with the data from a Header struct

Write a $comment command

Write a $date command

Write a $version command

Write a $timescale command

Write a $scope command

Write an $upscope command

Write a $scope command, a series of $var commands, and an $upscope commands from a Scope structure

Write a $var command

Write a $var command from a Var structure

Write a $enddefinitions command

Write a #xxx timestamp

Write a change to a scalar variable

Write a change to a vector variable

Write a change to a real variable

Write a change to a string variable

Write the beginning of a simulation command

Write an $end to end a simulation command

Write a command from a Command enum as parsed by the parser.