pub struct FormattedSize {
pub unit: &'static str,
pub integer: u16,
pub fraction: u8,
}Expand description
Approximate size that includes unit, integral and fractional parts as fields.
This type is useful when you need custom formatting of the output, i.e. colors, locale-specific units etc.
Fields§
§unit: &'static strSize unit.
integer: u16Integral part. Max. value is 1023.
fraction: u8Fractional part. Max. value is 9.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormattedSize
impl RefUnwindSafe for FormattedSize
impl Send for FormattedSize
impl Sync for FormattedSize
impl Unpin for FormattedSize
impl UnwindSafe for FormattedSize
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