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