pub struct ReuseAnalyzer { /* private fields */ }Expand description
Main reuse analysis and optimization struct
Implementations§
Source§impl ReuseAnalyzer
impl ReuseAnalyzer
Sourcepub fn new(config: ReuseConfig) -> Self
pub fn new(config: ReuseConfig) -> Self
Create a new reuse analyzer
Sourcepub fn stats(&self) -> &ReuseStats
pub fn stats(&self) -> &ReuseStats
Get the optimization statistics
Sourcepub fn reuse_opportunities(&self) -> &[ReuseOpportunity]
pub fn reuse_opportunities(&self) -> &[ReuseOpportunity]
Get detected reuse opportunities
Sourcepub fn rc_eliminations(&self) -> &[RcElimInfo]
pub fn rc_eliminations(&self) -> &[RcElimInfo]
Get RC eliminations
Sourcepub fn get_borrow_info(&self, var: &LcnfVarId) -> Option<&BorrowInfo>
pub fn get_borrow_info(&self, var: &LcnfVarId) -> Option<&BorrowInfo>
Get borrow info for a variable
Auto Trait Implementations§
impl Freeze for ReuseAnalyzer
impl RefUnwindSafe for ReuseAnalyzer
impl Send for ReuseAnalyzer
impl Sync for ReuseAnalyzer
impl Unpin for ReuseAnalyzer
impl UnsafeUnpin for ReuseAnalyzer
impl UnwindSafe for ReuseAnalyzer
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