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