pub struct SpecPassRegistry { /* private fields */ }Implementations§
Source§impl SpecPassRegistry
impl SpecPassRegistry
pub fn new() -> Self
pub fn register(&mut self, config: SpecPassConfig)
pub fn enabled_passes(&self) -> Vec<&SpecPassConfig>
pub fn get_stats(&self, name: &str) -> Option<&SpecPassStats>
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 SpecPassRegistry
impl RefUnwindSafe for SpecPassRegistry
impl Send for SpecPassRegistry
impl Sync for SpecPassRegistry
impl Unpin for SpecPassRegistry
impl UnsafeUnpin for SpecPassRegistry
impl UnwindSafe for SpecPassRegistry
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