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