#[repr(transparent)]pub struct HumanBytes {
pub bytes: u64,
}Expand description
Friendlier formatting for byte values
Fields§
§bytes: u64The inner bytes
Implementations§
Source§impl HumanBytes
impl HumanBytes
Trait Implementations§
Source§impl Clone for HumanBytes
impl Clone for HumanBytes
Source§fn clone(&self) -> HumanBytes
fn clone(&self) -> HumanBytes
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HumanBytes
impl Debug for HumanBytes
Source§impl Default for HumanBytes
impl Default for HumanBytes
Source§fn default() -> HumanBytes
fn default() -> HumanBytes
Returns the “default value” for a type. Read more
Source§impl Display for HumanBytes
impl Display for HumanBytes
Source§impl From<u32> for HumanBytes
impl From<u32> for HumanBytes
Source§impl From<u64> for HumanBytes
impl From<u64> for HumanBytes
Source§impl From<usize> for HumanBytes
impl From<usize> for HumanBytes
Source§impl Hash for HumanBytes
impl Hash for HumanBytes
Source§impl Ord for HumanBytes
impl Ord for HumanBytes
Source§fn cmp(&self, other: &HumanBytes) -> Ordering
fn cmp(&self, other: &HumanBytes) -> Ordering
1.21.0 · 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
Source§impl PartialEq for HumanBytes
impl PartialEq for HumanBytes
Source§impl PartialOrd for HumanBytes
impl PartialOrd for HumanBytes
Source§impl SizeOf for HumanBytes
impl SizeOf for HumanBytes
Source§fn 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
Source§fn size_of_with_context(&self, context: &mut Context)
fn size_of_with_context(&self, context: &mut Context)
Adds the size of the current value to the given
Context,
including both the size of the value itself and all of its childrenimpl Copy for HumanBytes
impl Eq for HumanBytes
impl StructuralPartialEq for HumanBytes
Auto Trait Implementations§
impl Freeze for HumanBytes
impl RefUnwindSafe for HumanBytes
impl Send for HumanBytes
impl Sync for HumanBytes
impl Unpin for HumanBytes
impl UnwindSafe for HumanBytes
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