Skip to main content

ExecutableTestbench

Struct ExecutableTestbench 

Source
pub struct ExecutableTestbench<Event, Signal> { /* private fields */ }

Implementations§

Source§

impl<Event, Signal> ExecutableTestbench<Event, Signal>

Source

pub fn new( statements: Vec<ExecutableStatement<Event, Signal>>, random_seed: u64, ) -> Self

Source

pub fn new_with_random_seed( statements: Vec<ExecutableStatement<Event, Signal>>, random_seed: Option<u64>, ) -> Self

Source

pub fn with_component_runtime( self, components: Vec<TestbenchComponent>, libraries: Vec<ComponentLibrary>, file_base: Option<PathBuf>, bindings: Vec<ExecutableComponentBinding<Event, Signal>>, ) -> Self

Source

pub fn statements(&self) -> &[ExecutableStatement<Event, Signal>]

Source

pub fn into_statements(self) -> Vec<ExecutableStatement<Event, Signal>>

Source

pub fn random_seed(&self) -> u64

Source

pub fn configured_random_seed(&self) -> Option<u64>

Source

pub fn components(&self) -> &[TestbenchComponent]

Source

pub fn component_libraries(&self) -> &[ComponentLibrary]

Source

pub fn component_file_base(&self) -> Option<&Path>

Source

pub fn component_bindings(&self) -> &[ExecutableComponentBinding<Event, Signal>]

Auto Trait Implementations§

§

impl<Event, Signal> Freeze for ExecutableTestbench<Event, Signal>

§

impl<Event, Signal> RefUnwindSafe for ExecutableTestbench<Event, Signal>

§

impl<Event, Signal> Send for ExecutableTestbench<Event, Signal>

§

impl<Event, Signal> Sync for ExecutableTestbench<Event, Signal>

§

impl<Event, Signal> Unpin for ExecutableTestbench<Event, Signal>

§

impl<Event, Signal> UnsafeUnpin for ExecutableTestbench<Event, Signal>

§

impl<Event, Signal> UnwindSafe for ExecutableTestbench<Event, Signal>

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 = !

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.