pub struct AllocationComparison {
pub baseline: AllocationResult,
pub current: AllocationResult,
pub allocation_improvement: f64,
}Expand description
Allocation comparison result
Fields§
§baseline: AllocationResultBaseline allocation result
current: AllocationResultCurrent allocation result being compared
allocation_improvement: f64Allocation improvement percentage (positive means baseline allocates less)
Implementations§
Source§impl AllocationComparison
impl AllocationComparison
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Generate markdown report
Trait Implementations§
Source§impl Clone for AllocationComparison
impl Clone for AllocationComparison
Auto Trait Implementations§
impl Freeze for AllocationComparison
impl RefUnwindSafe for AllocationComparison
impl Send for AllocationComparison
impl Sync for AllocationComparison
impl Unpin for AllocationComparison
impl UnsafeUnpin for AllocationComparison
impl UnwindSafe for AllocationComparison
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