Struct systemstat::data::ByteSize
[−]
[src]
pub struct ByteSize { /* fields omitted */ }
Byte size representation
Methods
impl ByteSize
[src]
fn b(size: usize) -> ByteSize
fn kb(size: usize) -> ByteSize
fn kib(size: usize) -> ByteSize
fn mb(size: usize) -> ByteSize
fn mib(size: usize) -> ByteSize
fn gb(size: usize) -> ByteSize
fn gib(size: usize) -> ByteSize
fn tb(size: usize) -> ByteSize
fn tib(size: usize) -> ByteSize
fn pb(size: usize) -> ByteSize
fn pib(size: usize) -> ByteSize
fn as_usize(&self) -> usize
fn to_string(&self, si: bool) -> String
Trait Implementations
impl PartialOrd<ByteSize> for ByteSize
[src]
fn partial_cmp(&self, __arg_0: &ByteSize) -> Option<Ordering>
fn lt(&self, __arg_0: &ByteSize) -> bool
fn le(&self, __arg_0: &ByteSize) -> bool
fn gt(&self, __arg_0: &ByteSize) -> bool
fn ge(&self, __arg_0: &ByteSize) -> bool
impl Display for ByteSize
[src]
impl Sub<ByteSize> for ByteSize
[src]
type Output = ByteSize
The resulting type after applying the -
operator
fn sub(self, rhs: ByteSize) -> ByteSize
The method for the -
operator
impl Sub<usize> for ByteSize
[src]
type Output = ByteSize
The resulting type after applying the -
operator
fn sub(self, rhs: usize) -> ByteSize
The method for the -
operator
impl Copy for ByteSize
[src]
impl Add<usize> for ByteSize
[src]
impl Add<ByteSize> for ByteSize
[src]
impl Div<usize> for ByteSize
[src]
impl Ord for ByteSize
[src]
impl Mul<usize> for ByteSize
[src]
impl Eq for ByteSize
[src]
impl PartialEq<ByteSize> for ByteSize
[src]
fn eq(&self, __arg_0: &ByteSize) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ByteSize) -> bool
This method tests for !=
.
impl Debug for ByteSize
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for ByteSize
[src]
fn clone(&self) -> ByteSize
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more