[][src]Struct librapidarchive::units::DataSize

pub struct DataSize<I> { /* fields omitted */ }

A type which represents a byte size input by a user.

Methods

impl<I> DataSize<I>[src]

pub fn into_inner(self) -> I[src]

Trait Implementations

impl<I> From<I> for DataSize<I>[src]

impl<I: PartialEq> PartialEq<DataSize<I>> for DataSize<I>[src]

impl<I: Clone> Clone for DataSize<I>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<I> Add<DataSize<I>> for DataSize<I> where
    I: Add + From<<I as Add>::Output>, 
[src]

type Output = DataSize<I>

The resulting type after applying the + operator.

impl<I> Sub<DataSize<I>> for DataSize<I> where
    I: Sub + From<<I as Sub>::Output>, 
[src]

type Output = DataSize<I>

The resulting type after applying the - operator.

impl<I> Mul<DataSize<I>> for DataSize<I> where
    I: Mul + From<<I as Mul>::Output>, 
[src]

type Output = DataSize<I>

The resulting type after applying the * operator.

impl<I> Div<DataSize<I>> for DataSize<I> where
    I: Div + From<<I as Div>::Output>, 
[src]

type Output = DataSize<I>

The resulting type after applying the / operator.

impl<I> AddAssign<DataSize<I>> for DataSize<I> where
    I: AddAssign
[src]

impl<I> Display for DataSize<I> where
    I: Clone + Display + Div + NumCast + ToPrimitive
[src]

impl<I> FromStr for DataSize<I> where
    I: FromStr + Mul + From<<I as Mul>::Output> + NumCast
[src]

type Err = I::Err

The associated error which can be returned from parsing.

Auto Trait Implementations

impl<I> Send for DataSize<I> where
    I: Send

impl<I> Sync for DataSize<I> where
    I: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.