pub struct BytesFormatter(pub usize);Expand description
Formats bytes into human-readable format using decimal units (GB, MB, KB, bytes)
Note: This uses decimal units (1 KB = 1000 bytes) rather than binary units (1 KiB = 1024 bytes).
Tuple Fields§
§0: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for BytesFormatter
impl RefUnwindSafe for BytesFormatter
impl Send for BytesFormatter
impl Sync for BytesFormatter
impl Unpin for BytesFormatter
impl UnsafeUnpin for BytesFormatter
impl UnwindSafe for BytesFormatter
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