Struct size_of::HumanBytes
source · #[repr(transparent)]pub struct HumanBytes {
pub bytes: u64,
}Expand description
Friendlier formatting for byte values
Fields
bytes: u64The inner bytes
Implementations
sourceimpl HumanBytes
impl HumanBytes
Trait Implementations
sourceimpl Clone for HumanBytes
impl Clone for HumanBytes
sourcefn clone(&self) -> HumanBytes
fn clone(&self) -> HumanBytes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for HumanBytes
impl Debug for HumanBytes
sourceimpl Default for HumanBytes
impl Default for HumanBytes
sourcefn default() -> HumanBytes
fn default() -> HumanBytes
Returns the “default value” for a type. Read more
sourceimpl Display for HumanBytes
impl Display for HumanBytes
sourceimpl From<u32> for HumanBytes
impl From<u32> for HumanBytes
sourceimpl From<u64> for HumanBytes
impl From<u64> for HumanBytes
sourceimpl From<usize> for HumanBytes
impl From<usize> for HumanBytes
sourceimpl Hash for HumanBytes
impl Hash for HumanBytes
sourceimpl Ord for HumanBytes
impl Ord for HumanBytes
sourcefn cmp(&self, other: &HumanBytes) -> Ordering
fn cmp(&self, other: &HumanBytes) -> Ordering
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<HumanBytes> for HumanBytes
impl PartialEq<HumanBytes> for HumanBytes
sourcefn eq(&self, other: &HumanBytes) -> bool
fn eq(&self, other: &HumanBytes) -> bool
sourceimpl PartialOrd<HumanBytes> for HumanBytes
impl PartialOrd<HumanBytes> for HumanBytes
sourcefn partial_cmp(&self, other: &HumanBytes) -> Option<Ordering>
fn partial_cmp(&self, other: &HumanBytes) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl SizeOf for HumanBytes
impl SizeOf for HumanBytes
sourcefn size_of_children(&self, _context: &mut Context)
fn size_of_children(&self, _context: &mut Context)
Gets the size of all “children” owned by this value, not including the
size of the value itself. Read more
sourcefn size_of_with_context(&self, context: &mut Context)
fn size_of_with_context(&self, context: &mut Context)
impl Copy for HumanBytes
impl Eq for HumanBytes
impl StructuralEq for HumanBytes
impl StructuralPartialEq for HumanBytes
Auto Trait Implementations
impl RefUnwindSafe for HumanBytes
impl Send for HumanBytes
impl Sync for HumanBytes
impl Unpin for HumanBytes
impl UnwindSafe for HumanBytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more