#[repr(transparent)]pub struct ByteNum(pub u64);
Expand description
A number of bytes.
This is a newtype for u64. It does not distinguish between an absolute number of bytes or a difference between two numbers of bytes.
Tuple Fields§
§0: u64
Implementations§
Trait Implementations§
source§impl Ord for ByteNum
impl Ord for ByteNum
source§impl PartialEq<ByteNum> for ByteNum
impl PartialEq<ByteNum> for ByteNum
source§impl PartialEq<ByteNum> for u64
impl PartialEq<ByteNum> for u64
source§impl PartialOrd<ByteNum> for ByteNum
impl PartialOrd<ByteNum> for ByteNum
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<u64> for ByteNum
impl PartialOrd<u64> for ByteNum
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RangeSetEntry for ByteNum
impl RangeSetEntry for ByteNum
impl Copy for ByteNum
impl Eq for ByteNum
impl StructuralEq for ByteNum
impl StructuralPartialEq for ByteNum
Auto Trait Implementations§
impl RefUnwindSafe for ByteNum
impl Send for ByteNum
impl Sync for ByteNum
impl Unpin for ByteNum
impl UnwindSafe for ByteNum
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