pub struct AllocationResult {
pub name: String,
pub estimated_allocations: usize,
pub timing_result: BenchmarkResult,
pub allocation_rate: f64,
}Expand description
Memory allocation tracking result
Fields§
§name: StringName of the operation
estimated_allocations: usizeEstimated total number of allocations
timing_result: BenchmarkResultTiming benchmark result
allocation_rate: f64Allocations per operation
Implementations§
Source§impl AllocationResult
impl AllocationResult
Sourcepub fn compare_allocations(
&self,
other: &AllocationResult,
) -> AllocationComparison
pub fn compare_allocations( &self, other: &AllocationResult, ) -> AllocationComparison
Compare allocation efficiency with another result
Trait Implementations§
Source§impl Clone for AllocationResult
impl Clone for AllocationResult
Source§fn clone(&self) -> AllocationResult
fn clone(&self) -> AllocationResult
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 AllocationResult
impl RefUnwindSafe for AllocationResult
impl Send for AllocationResult
impl Sync for AllocationResult
impl Unpin for AllocationResult
impl UnwindSafe for AllocationResult
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