pub struct SavingsReport {
pub tiles_before: u32,
pub tiles_after: u32,
pub tiles_saved: u32,
pub bytes_before: Option<u64>,
pub bytes_after: Option<u64>,
}Fields§
§tiles_before: u32§tiles_after: u32§tiles_saved: u32§bytes_before: Option<u64>§bytes_after: Option<u64>Implementations§
Source§impl SavingsReport
impl SavingsReport
pub fn size_reduction_pct(&self) -> Option<f64>
pub fn token_reduction_pct(&self) -> f64
Auto Trait Implementations§
impl Freeze for SavingsReport
impl RefUnwindSafe for SavingsReport
impl Send for SavingsReport
impl Sync for SavingsReport
impl Unpin for SavingsReport
impl UnsafeUnpin for SavingsReport
impl UnwindSafe for SavingsReport
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> 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