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