[−][src]Struct librapidarchive::units::DataSize
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(&self) -> 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]
I: Add + From<<I as Add>::Output>,
type Output = DataSize<I>
The resulting type after applying the +
operator.
fn add(self, other: DataSize<I>) -> DataSize<I>
[src]
impl<I> Sub<DataSize<I>> for DataSize<I> where
I: Sub + From<<I as Sub>::Output>,
[src]
I: Sub + From<<I as Sub>::Output>,
type Output = DataSize<I>
The resulting type after applying the -
operator.
fn sub(self, other: DataSize<I>) -> DataSize<I>
[src]
impl<I> Mul<DataSize<I>> for DataSize<I> where
I: Mul + From<<I as Mul>::Output>,
[src]
I: Mul + From<<I as Mul>::Output>,
type Output = DataSize<I>
The resulting type after applying the *
operator.
fn mul(self, other: DataSize<I>) -> DataSize<I>
[src]
impl<I> Div<DataSize<I>> for DataSize<I> where
I: Div + From<<I as Div>::Output>,
[src]
I: Div + From<<I as Div>::Output>,
type Output = DataSize<I>
The resulting type after applying the /
operator.
fn div(self, other: DataSize<I>) -> DataSize<I>
[src]
impl<I> AddAssign<DataSize<I>> for DataSize<I> where
I: AddAssign,
[src]
I: AddAssign,
fn add_assign(&mut self, other: DataSize<I>)
[src]
impl<I> Display for DataSize<I> where
I: Clone + Display + Div + NumCast + ToPrimitive,
[src]
I: Clone + Display + Div + NumCast + ToPrimitive,
impl<I> FromStr for DataSize<I> where
I: FromStr + Mul + From<<I as Mul>::Output> + NumCast,
[src]
I: FromStr + Mul + From<<I as Mul>::Output> + NumCast,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,