pub struct WasmX2PassRegistry { /* private fields */ }Expand description
Pass registry for WasmX2.
Implementations§
Source§impl WasmX2PassRegistry
impl WasmX2PassRegistry
pub fn new() -> Self
pub fn register(&mut self, c: WasmX2PassConfig)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, i: usize) -> Option<&WasmX2PassConfig>
pub fn get_stats(&self, i: usize) -> Option<&WasmX2PassStats>
pub fn enabled_passes(&self) -> Vec<&WasmX2PassConfig>
pub fn passes_in_phase(&self, ph: &WasmX2PassPhase) -> Vec<&WasmX2PassConfig>
pub fn total_nodes_visited(&self) -> usize
pub fn any_changed(&self) -> bool
Trait Implementations§
Source§impl Debug for WasmX2PassRegistry
impl Debug for WasmX2PassRegistry
Source§impl Default for WasmX2PassRegistry
impl Default for WasmX2PassRegistry
Source§fn default() -> WasmX2PassRegistry
fn default() -> WasmX2PassRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WasmX2PassRegistry
impl RefUnwindSafe for WasmX2PassRegistry
impl Send for WasmX2PassRegistry
impl Sync for WasmX2PassRegistry
impl Unpin for WasmX2PassRegistry
impl UnsafeUnpin for WasmX2PassRegistry
impl UnwindSafe for WasmX2PassRegistry
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