pub struct EscapeBasedRefCountOpt {
pub eliminated_increments: u32,
pub eliminated_decrements: u32,
pub replaced_with_stack: Vec<u32>,
}Fields§
§eliminated_increments: u32§eliminated_decrements: u32§replaced_with_stack: Vec<u32>Implementations§
Source§impl EscapeBasedRefCountOpt
impl EscapeBasedRefCountOpt
pub fn new() -> Self
pub fn record_elimination(&mut self)
pub fn record_stack_replace(&mut self, alloc_id: u32)
pub fn total_eliminated(&self) -> u32
pub fn savings_report(&self) -> String
Trait Implementations§
Source§impl Clone for EscapeBasedRefCountOpt
impl Clone for EscapeBasedRefCountOpt
Source§fn clone(&self) -> EscapeBasedRefCountOpt
fn clone(&self) -> EscapeBasedRefCountOpt
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 moreAuto Trait Implementations§
impl Freeze for EscapeBasedRefCountOpt
impl RefUnwindSafe for EscapeBasedRefCountOpt
impl Send for EscapeBasedRefCountOpt
impl Sync for EscapeBasedRefCountOpt
impl Unpin for EscapeBasedRefCountOpt
impl UnsafeUnpin for EscapeBasedRefCountOpt
impl UnwindSafe for EscapeBasedRefCountOpt
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