pub struct SimulatorPrinter {}
Expand description
A handle to the simulator’s output.
Useful for if you need a Writer struct corresponding to the simulator’s output.
Implementations§
Trait Implementations§
Source§impl Debug for SimulatorPrinter
impl Debug for SimulatorPrinter
Source§impl Write for SimulatorPrinter
impl Write for SimulatorPrinter
Source§fn write_str(&mut self, string: &str) -> FmtResult
fn write_str(&mut self, string: &str) -> FmtResult
Write formatted textual data to the simulator’s output
Since the backing vpi_printf()
function used is not thread safe, write_str will return an
Err
if you attempt to call [write_str()
] from a thread other than the main one.
It will also Err
out if you attempt to call it during a start routine since
vpi_printf()
also doesn’t support this.
Auto Trait Implementations§
impl Freeze for SimulatorPrinter
impl RefUnwindSafe for SimulatorPrinter
impl Send for SimulatorPrinter
impl Sync for SimulatorPrinter
impl Unpin for SimulatorPrinter
impl UnwindSafe for SimulatorPrinter
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