pub struct TestbenchProgram<A> { /* private fields */ }Implementations§
Source§impl<A> TestbenchProgram<A>
impl<A> TestbenchProgram<A>
pub fn new(statements: Vec<SemanticStatement<A>>) -> Self
pub fn with_random_seed(self, random_seed: u64) -> Self
pub fn with_random_seed_option(self, random_seed: Option<u64>) -> Self
pub fn statements(&self) -> &[SemanticStatement<A>] ⓘ
pub fn into_statements(self) -> Vec<SemanticStatement<A>> ⓘ
pub fn random_seed(&self) -> u64
pub fn configured_random_seed(&self) -> Option<u64>
pub fn with_components(self, components: Vec<TestbenchComponent>) -> Self
pub fn with_component_runtime( self, libraries: Vec<ComponentLibrary>, file_base: Option<PathBuf>, bindings: Vec<SemanticComponentBinding<A>>, ) -> Self
pub fn components(&self) -> &[TestbenchComponent]
pub fn component_libraries(&self) -> &[ComponentLibrary]
pub fn component_file_base(&self) -> Option<&Path>
pub fn component_bindings(&self) -> &[SemanticComponentBinding<A>] ⓘ
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<A: Clone> Clone for TestbenchProgram<A>
impl<A: Clone> Clone for TestbenchProgram<A>
Source§fn clone(&self) -> TestbenchProgram<A>
fn clone(&self) -> TestbenchProgram<A>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Debug> Debug for TestbenchProgram<A>
impl<A: Debug> Debug for TestbenchProgram<A>
Source§impl<A> Default for TestbenchProgram<A>
impl<A> Default for TestbenchProgram<A>
Source§impl<'de, A> Deserialize<'de> for TestbenchProgram<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for TestbenchProgram<A>where
A: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<A: Eq> Eq for TestbenchProgram<A>
Source§impl<A: PartialEq> PartialEq for TestbenchProgram<A>
impl<A: PartialEq> PartialEq for TestbenchProgram<A>
Source§impl<A> Serialize for TestbenchProgram<A>where
A: Serialize,
impl<A> Serialize for TestbenchProgram<A>where
A: Serialize,
impl<A: PartialEq> StructuralPartialEq for TestbenchProgram<A>
Auto Trait Implementations§
impl<A> Freeze for TestbenchProgram<A>where
Vec<TestbenchStatement<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>, SemanticArgument<A>, TestbenchTarget<SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>>: Freeze,
Vec<ComponentBinding<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>: Freeze,
impl<A> RefUnwindSafe for TestbenchProgram<A>where
Vec<TestbenchStatement<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>, SemanticArgument<A>, TestbenchTarget<SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>>: RefUnwindSafe,
Vec<ComponentBinding<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>: RefUnwindSafe,
impl<A> Send for TestbenchProgram<A>where
Vec<TestbenchStatement<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>, SemanticArgument<A>, TestbenchTarget<SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>>: Send,
Vec<ComponentBinding<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>: Send,
impl<A> Sync for TestbenchProgram<A>where
Vec<TestbenchStatement<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>, SemanticArgument<A>, TestbenchTarget<SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>>: Sync,
Vec<ComponentBinding<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>: Sync,
impl<A> Unpin for TestbenchProgram<A>where
Vec<TestbenchStatement<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>, SemanticArgument<A>, TestbenchTarget<SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>>: Unpin,
Vec<ComponentBinding<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>: Unpin,
impl<A> UnsafeUnpin for TestbenchProgram<A>where
Vec<TestbenchStatement<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>, SemanticArgument<A>, TestbenchTarget<SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>>: UnsafeUnpin,
Vec<ComponentBinding<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>: UnsafeUnpin,
impl<A> UnwindSafe for TestbenchProgram<A>where
Vec<TestbenchStatement<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>, SemanticArgument<A>, TestbenchTarget<SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>>: UnwindSafe,
Vec<ComponentBinding<A, SemanticSignal<A>, ExprBytecode<StateLocation<A>>>>: UnwindSafe,
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