pub struct ChiselPassRegistry { /* private fields */ }Implementations§
Source§impl ChiselPassRegistry
impl ChiselPassRegistry
pub fn new() -> Self
pub fn register(&mut self, config: ChiselPassConfig)
pub fn enabled_passes(&self) -> Vec<&ChiselPassConfig>
pub fn get_stats(&self, name: &str) -> Option<&ChiselPassStats>
pub fn total_passes(&self) -> usize
pub fn enabled_count(&self) -> usize
pub fn update_stats( &mut self, name: &str, changes: u64, time_ms: u64, iter: u32, )
Auto Trait Implementations§
impl Freeze for ChiselPassRegistry
impl RefUnwindSafe for ChiselPassRegistry
impl Send for ChiselPassRegistry
impl Sync for ChiselPassRegistry
impl Unpin for ChiselPassRegistry
impl UnsafeUnpin for ChiselPassRegistry
impl UnwindSafe for ChiselPassRegistry
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