pub struct Sim<T> { /* private fields */ }
Implementations
sourceimpl<T> Sim<T>
impl<T> Sim<T>
pub fn init(&self) -> Result<Box<T>>
pub fn watch<S>(&mut self, check: S, x: Box<T>) -> Result<Box<T>> where
S: Fn(&T) -> bool + Send + 'static,
pub fn clock(&mut self, delta: u64, x: Box<T>) -> Result<Box<T>>
pub fn wait(&mut self, delta: u64, x: Box<T>) -> Result<Box<T>>
pub fn done(&self, x: Box<T>) -> Result<()>
pub fn halt(&self, x: Box<T>) -> Result<()>
pub fn time(&self) -> u64
Auto Trait Implementations
impl<T> RefUnwindSafe for Sim<T>
impl<T> Send for Sim<T> where
T: Send,
impl<T> Sync for Sim<T> where
T: Send,
impl<T> Unpin for Sim<T>
impl<T> UnwindSafe for Sim<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