pub struct Simulation<T> { /* private fields */ }
Implementations
sourceimpl<T: Send + 'static + Block> Simulation<T>
impl<T: Send + 'static + Block> Simulation<T>
pub fn new() -> Simulation<T>
pub fn add_clock<F>(&mut self, interval: u64, clock_fn: F) where
F: Fn(&mut Box<T>) + Send + 'static + RefUnwindSafe,
pub fn add_phased_clock<F>(&mut self, interval: u64, phase_delay: u64, clock_fn: F) where
F: Fn(&mut Box<T>) + Send + 'static + RefUnwindSafe,
pub fn add_testbench<F>(&mut self, testbench: F) where
F: Fn(Sim<T>) -> Result<()> + Send + 'static + RefUnwindSafe,
pub fn add_custom_logic<F>(&mut self, logic: F) where
F: Fn(&mut T) + 'static,
pub fn endpoint(&mut self) -> Sim<T>
pub fn run(&mut self, x: Box<T>, max_time: u64) -> Result<()>
pub fn run_to_file(&mut self, x: Box<T>, max_time: u64, name: &str) -> Result<()>
pub fn run_traced<W: Write>(
&mut self,
x: Box<T>,
max_time: u64,
trace: W
) -> Result<()>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Simulation<T>
impl<T> !Send for Simulation<T>
impl<T> !Sync for Simulation<T>
impl<T> Unpin for Simulation<T>
impl<T> !UnwindSafe for Simulation<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more