pub struct Bytesize(pub u64);Tuple Fields§
§0: u64Implementations§
Source§impl Bytesize
impl Bytesize
pub const ZERO: Bytesize
pub const MAX: Bytesize
pub fn new(b: u64) -> Self
pub fn parse(input: &str) -> Result<Self>
pub fn b(b: u64) -> Self
pub fn kb(kb: u64) -> Self
pub fn mb(mb: u64) -> Self
pub fn gb(gb: u64) -> Self
pub fn tb(tb: u64) -> Self
pub fn pb(pb: u64) -> Self
Trait Implementations§
impl Copy for Bytesize
impl Eq for Bytesize
Source§impl Ord for Bytesize
impl Ord for Bytesize
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Bytesize
impl PartialOrd for Bytesize
impl StructuralPartialEq for Bytesize
Auto Trait Implementations§
impl Freeze for Bytesize
impl RefUnwindSafe for Bytesize
impl Send for Bytesize
impl Sync for Bytesize
impl Unpin for Bytesize
impl UnsafeUnpin for Bytesize
impl UnwindSafe for Bytesize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.