pub struct FormattedSize {
pub number: String,
pub unit: SizeUnit,
pub incomplete: bool,
}Expand description
A human-readable size, kept in parts so renderers can style each one.
Fields§
§number: String§unit: SizeUnit§incomplete: boolThe size is a lower bound because some contents could not be read.
Trait Implementations§
Source§impl Clone for FormattedSize
impl Clone for FormattedSize
Source§impl Debug for FormattedSize
impl Debug for FormattedSize
Source§impl Display for FormattedSize
impl Display for FormattedSize
impl Eq for FormattedSize
Source§impl PartialEq for FormattedSize
impl PartialEq for FormattedSize
impl StructuralPartialEq for FormattedSize
Auto Trait Implementations§
impl Freeze for FormattedSize
impl RefUnwindSafe for FormattedSize
impl Send for FormattedSize
impl Sync for FormattedSize
impl Unpin for FormattedSize
impl UnsafeUnpin 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