pub struct OptimizationResult {
pub changed: bool,
pub instructions_removed: usize,
pub instructions_modified: usize,
pub blocks_removed: usize,
}Expand description
Result of running an optimization pass.
Fields§
§changed: boolWhether the module was changed.
instructions_removed: usizeNumber of instructions removed.
instructions_modified: usizeNumber of instructions modified.
blocks_removed: usizeNumber of blocks removed.
Implementations§
Trait Implementations§
Source§impl Clone for OptimizationResult
impl Clone for OptimizationResult
Source§fn clone(&self) -> OptimizationResult
fn clone(&self) -> OptimizationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizationResult
impl Debug for OptimizationResult
Source§impl Default for OptimizationResult
impl Default for OptimizationResult
Source§fn default() -> OptimizationResult
fn default() -> OptimizationResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OptimizationResult
impl RefUnwindSafe for OptimizationResult
impl Send for OptimizationResult
impl Sync for OptimizationResult
impl Unpin for OptimizationResult
impl UnwindSafe for OptimizationResult
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