[−][src]Struct uom::si::fmt::Arguments
A struct to specify a display style and unit.
Usage
Indirect style
let l = Length::new::<meter>(1.0); let a = Length::format_args(centimeter, Description); assert_eq!("100 centimeters", format!("{}", a.with(l)));
Direct style
let l = Length::new::<meter>(1.0); let a = l.into_format_args(centimeter, Description); assert_eq!("100 centimeters", format!("{}", a));
Methods
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
[src]
impl<N> Arguments<Dimension, N> where
N: Unit + Unit,
pub fn with<U: ?Sized, V>( | [src] |
Specifies a quantity to display.
Trait Implementations
impl<D: ?Sized, N> Copy for Arguments<D, N> where
D: Dimension,
N: Unit,
[src]
impl<D: ?Sized, N> Copy for Arguments<D, N> where
D: Dimension,
N: Unit,
impl<D: ?Sized, N> Clone for Arguments<D, N> where
D: Dimension,
N: Unit,
[src]
impl<D: ?Sized, N> Clone for Arguments<D, N> where
D: Dimension,
N: Unit,
Auto Trait Implementations
impl<D: ?Sized, N> Send for Arguments<D, N> where
N: Send,
impl<D: ?Sized, N> Send for Arguments<D, N> where
N: Send,
impl<D: ?Sized, N> Sync for Arguments<D, N> where
N: Sync,
impl<D: ?Sized, N> Sync for Arguments<D, N> where
N: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)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]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut W
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Same for T
[src]
impl<T> Same for T
type Output = T
Should always be Self