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