[][src]Struct bytesize::ByteSize

pub struct ByteSize(pub u64);

Byte size representation

Implementations

impl ByteSize[src]

pub fn b(size: u64) -> ByteSize[src]

pub fn kb(size: u64) -> ByteSize[src]

pub fn kib(size: u64) -> ByteSize[src]

pub fn mb(size: u64) -> ByteSize[src]

pub fn mib(size: u64) -> ByteSize[src]

pub fn gb(size: u64) -> ByteSize[src]

pub fn gib(size: u64) -> ByteSize[src]

pub fn tb(size: u64) -> ByteSize[src]

pub fn tib(size: u64) -> ByteSize[src]

pub fn pb(size: u64) -> ByteSize[src]

pub fn pib(size: u64) -> ByteSize[src]

pub fn as_u64(&self) -> u64[src]

pub fn to_string_as(&self, si_unit: bool) -> String[src]

Trait Implementations

impl Add<ByteSize> for u64[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Add<ByteSize> for u32[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Add<ByteSize> for u16[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Add<ByteSize> for u8[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Add<ByteSize> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Add<u16> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Add<u32> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Add<u64> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Add<u8> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the + operator.

impl Clone for ByteSize[src]

impl Copy for ByteSize[src]

impl Debug for ByteSize[src]

impl Default for ByteSize[src]

impl Display for ByteSize[src]

impl Eq for ByteSize[src]

impl Mul<ByteSize> for u64[src]

type Output = ByteSize

The resulting type after applying the * operator.

impl Mul<ByteSize> for u32[src]

type Output = ByteSize

The resulting type after applying the * operator.

impl Mul<ByteSize> for u16[src]

type Output = ByteSize

The resulting type after applying the * operator.

impl Mul<ByteSize> for u8[src]

type Output = ByteSize

The resulting type after applying the * operator.

impl Mul<u16> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the * operator.

impl Mul<u32> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the * operator.

impl Mul<u64> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the * operator.

impl Mul<u8> for ByteSize[src]

type Output = ByteSize

The resulting type after applying the * operator.

impl Ord for ByteSize[src]

impl PartialEq<ByteSize> for ByteSize[src]

impl PartialOrd<ByteSize> for ByteSize[src]

impl StructuralEq for ByteSize[src]

impl StructuralPartialEq for ByteSize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.