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