Struct bytesize::ByteSize
[−]
[src]
pub struct ByteSize { // some 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 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 Copy for ByteSize
[src]
impl Debug for ByteSize
[src]
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