pub struct DefaultByteFormatter;Expand description
Default implementation for byte formatting.
Trait Implementations§
Source§impl ByteFormatter for DefaultByteFormatter
impl ByteFormatter for DefaultByteFormatter
Source§fn formatted_bytes(&self, bytes: usize) -> String
fn formatted_bytes(&self, bytes: usize) -> String
Formats a byte count in a human-readable format (B, KB, MB, GB).
Auto Trait Implementations§
impl Freeze for DefaultByteFormatter
impl RefUnwindSafe for DefaultByteFormatter
impl Send for DefaultByteFormatter
impl Sync for DefaultByteFormatter
impl Unpin for DefaultByteFormatter
impl UnsafeUnpin for DefaultByteFormatter
impl UnwindSafe for DefaultByteFormatter
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