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