pub struct Arguments<D, N> where
    D: Dimension + ?Sized,
    N: Unit
{ /* private fields */ }
Expand description

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));

Generic Parameters

  • D: Dimension.
  • N: Unit.

Implementations

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Specifies a quantity to display.

Generic Parameters
  • U: Base units.
  • V: Underlying storage type trait is implemented for.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.