pub struct ReuseConfig {
pub enable_reset_reuse: bool,
pub enable_borrow: bool,
pub enable_rc_elim: bool,
pub enable_in_place: bool,
pub analysis_depth: usize,
pub interprocedural: bool,
}Expand description
Configuration for reuse optimization
Fields§
§enable_reset_reuse: boolEnable reset-reuse optimization
enable_borrow: boolEnable borrow inference
enable_rc_elim: boolEnable reference counting elimination
enable_in_place: boolEnable in-place update optimization
analysis_depth: usizeMaximum depth for ownership analysis
interprocedural: boolWhether to track ownership through function calls
Trait Implementations§
Source§impl Clone for ReuseConfig
impl Clone for ReuseConfig
Source§fn clone(&self) -> ReuseConfig
fn clone(&self) -> ReuseConfig
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 ReuseConfig
impl Debug for ReuseConfig
Auto Trait Implementations§
impl Freeze for ReuseConfig
impl RefUnwindSafe for ReuseConfig
impl Send for ReuseConfig
impl Sync for ReuseConfig
impl Unpin for ReuseConfig
impl UnsafeUnpin for ReuseConfig
impl UnwindSafe for ReuseConfig
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