pub struct ByteCount(pub u64);
Expand description
Parsed byte count.
Tuple Fields§
§0: u64
Implementations§
Source§impl ByteCount
impl ByteCount
Sourcepub fn from_bytes(bytes: u64) -> Self
pub fn from_bytes(bytes: u64) -> Self
Constructor.
Sourcepub fn from_kibibytes(kibibytes: u64) -> Self
pub fn from_kibibytes(kibibytes: u64) -> Self
Constructor.
Sourcepub fn from_mebibytes(mebibytes: u64) -> Self
pub fn from_mebibytes(mebibytes: u64) -> Self
Constructor.
Sourcepub fn from_gibibytes(gibibytes: u64) -> Self
pub fn from_gibibytes(gibibytes: u64) -> Self
Constructor.
Sourcepub fn from_tebibytes(tebibytes: u64) -> Self
pub fn from_tebibytes(tebibytes: u64) -> Self
Constructor.
Trait Implementations§
impl Copy for ByteCount
Auto Trait Implementations§
impl Freeze for ByteCount
impl RefUnwindSafe for ByteCount
impl Send for ByteCount
impl Sync for ByteCount
impl Unpin for ByteCount
impl UnwindSafe for ByteCount
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