pub struct Waves { /* private fields */ }
Implementations§
Source§impl Waves
impl Waves
pub fn new( pin_names: Vec<String>, initial_levels: Vec<bool>, initial_timestamp: u64, resolution: u64, ) -> Waves
pub fn add_signal(&mut self, name: String, initial_level: bool) -> usize
pub fn add_event(&mut self, event: MonitoringEvent)
pub fn add_events(&mut self, event: &[MonitoringEvent])
pub fn signal_index(&self, name: &str) -> Option<usize>
pub fn initial_levels(&self) -> Vec<bool>
pub fn set_final_timestamp(&mut self, ts: u64)
pub fn timestamp_to_ns(&self, timestamp: u64) -> u64
pub fn ns_to_timestamp(&self, ns: u64) -> u64
pub fn all_events(&self) -> impl Iterator<Item = &MonitoringEvent>
pub fn sort_events(&mut self)
pub fn dump_vcd(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Waves
impl RefUnwindSafe for Waves
impl Send for Waves
impl Sync for Waves
impl Unpin for Waves
impl UnwindSafe for Waves
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