pub struct CloneOptimizer { /* private fields */ }
Expand description
Clone optimization analyzer
Implementations§
Source§impl CloneOptimizer
impl CloneOptimizer
Sourcepub fn record_clone(&mut self, location: &str, type_name: &str, size: usize)
pub fn record_clone(&mut self, location: &str, type_name: &str, size: usize)
Record a clone operation
Sourcepub fn get_stats(&self) -> &CloneStats
pub fn get_stats(&self) -> &CloneStats
Get current statistics
Sourcepub fn get_clone_info(&self) -> &[CloneInfo]
pub fn get_clone_info(&self) -> &[CloneInfo]
Get clone information
Sourcepub fn mark_optimized(&mut self, location: &str)
pub fn mark_optimized(&mut self, location: &str)
Mark a clone as optimized
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloneOptimizer
impl RefUnwindSafe for CloneOptimizer
impl Send for CloneOptimizer
impl Sync for CloneOptimizer
impl Unpin for CloneOptimizer
impl UnwindSafe for CloneOptimizer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more