pub struct Sim { /* private fields */ }Implementations§
Source§impl Sim
impl Sim
pub fn new(circuit: &Circuit) -> Sim
pub fn new_with_exts( circuit: &Circuit, linked_exts: BTreeMap<Path, Box<dyn ExtInstance>>, ) -> Sim
pub fn net_values(&self) -> BTreeMap<NetId, Value>
pub fn net(&self, net_id: NetId) -> &Net
pub fn cap_clock_freq(self, freq: f64) -> Self
pub fn peek<P: Into<Path>>(&self, path: P) -> Value
pub fn poke<P: Into<Path>>(&mut self, path: P, value: Value)
pub fn type_of<P: Into<Path>>(&self, path: P) -> Type
pub fn clock(&mut self)
pub fn reset(&mut self)
pub fn clocks_per_second(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sim
impl !RefUnwindSafe for Sim
impl !Send for Sim
impl !Sync for Sim
impl Unpin for Sim
impl !UnwindSafe for Sim
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