Skip to main content

MCD

Struct MCD 

Source
pub struct MCD { /* private fields */ }
Expand description

Multi-channel descriptor used by VPI for output streams.

Implementations§

Source§

impl MCD

Source

pub fn new(filename: impl AsRef<str>) -> Self

Creates a new MCD for the given output file name.

Source

pub fn write(&self, msg: impl AsRef<str>)

Write a message to the MCD.

Source

pub fn writeln(&self, msg: impl AsRef<str>)

Write a message with a newline to the MCD.

Source

pub fn close(&self)

Closes this MCD stream in the simulator.

Source

pub fn flush(&self)

Flushes any buffered MCD output.

Source

pub fn file_name(&self) -> Option<String>

Get the filename associated with this MCD, if any.

Trait Implementations§

Source§

impl BitOr for MCD

Combines two MCD descriptors into one destination mask.

Source§

type Output = MCD

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more

Auto Trait Implementations§

§

impl Freeze for MCD

§

impl RefUnwindSafe for MCD

§

impl Send for MCD

§

impl Sync for MCD

§

impl Unpin for MCD

§

impl UnsafeUnpin for MCD

§

impl UnwindSafe for MCD

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.