pub struct Benefit {
pub memory_bytes: usize,
pub performance_gain: f64,
pub complexity_reduction: f64,
}Expand description
Estimated benefit from optimization
Fields§
§memory_bytes: usizeMemory savings in bytes
performance_gain: f64Performance improvement (0.0 to 1.0)
complexity_reduction: f64Complexity reduction (0.0 to 1.0)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Benefit
impl<'de> Deserialize<'de> for Benefit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Benefit
impl RefUnwindSafe for Benefit
impl Send for Benefit
impl Sync for Benefit
impl Unpin for Benefit
impl UnwindSafe for Benefit
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