Struct bytesize::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 Debug for ByteSize[src]
impl Copy for ByteSize[src]
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
impl PartialEq 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 PartialOrd for ByteSize[src]
fn partial_cmp(&self, __arg_0: &ByteSize) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &ByteSize) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &ByteSize) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &ByteSize) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &ByteSize) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Eq for ByteSize[src]
impl Ord for ByteSize[src]
fn cmp(&self, __arg_0: &ByteSize) -> Ordering
This method returns an Ordering between self and other. Read more
impl Display for ByteSize[src]
impl Add<usize> for ByteSize[src]
type Output = ByteSize
The resulting type after applying the + operator
fn add(self, rhs: usize) -> ByteSize
The method for the + operator
impl Add<ByteSize> for ByteSize[src]
type Output = ByteSize
The resulting type after applying the + operator
fn add(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 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 Mul<usize> for ByteSize[src]
type Output = ByteSize
The resulting type after applying the * operator
fn mul(self, rhs: usize) -> ByteSize
The method for the * operator