pub struct NumBytes(/* private fields */);Expand description
A wrapper type representing a number of bytes.
Use the NumBytesExt trait to conveniently create instances:
use tokio_process_tools::NumBytesExt;
let kb = 16.kilobytes();
let mb = 2.megabytes();Implementations§
Trait Implementations§
impl Copy for NumBytes
impl Eq for NumBytes
impl StructuralPartialEq for NumBytes
Auto Trait Implementations§
impl Freeze for NumBytes
impl RefUnwindSafe for NumBytes
impl Send for NumBytes
impl Sync for NumBytes
impl Unpin for NumBytes
impl UnwindSafe for NumBytes
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