Struct uom::si::fmt::Arguments

source ·
pub struct Arguments<D, N>
where D: Dimension + ?Sized, N: Unit + ?Sized,
{ /* 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§

source§

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Absement<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Acceleration<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Action<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: AmountOfSubstance<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Angle<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: AngularAbsement<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: AngularAcceleration<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: AngularJerk<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: AngularVelocity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Area<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ArealDensityOfStates<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ArealHeatCapacity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ArealMassDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ArealNumberDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ArealNumberRate<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: AvailableEnergy<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Capacitance<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: CatalyticActivity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: CatalyticActivityConcentration<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Curvature<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: DiffusionCoefficient<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: DynamicViscosity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricCharge<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricChargeArealDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricChargeLinearDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricChargeVolumetricDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricCurrent<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricCurrentDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricDipoleMoment<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricDisplacementField<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricField<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricFlux<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricPermittivity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricPotential<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricQuadrupoleMoment<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricalConductance<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricalConductivity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricalMobility<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricalResistance<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ElectricalResistivity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Energy<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Force<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Frequency<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: FrequencyDrift<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: HeatCapacity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: HeatFluxDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: HeatTransfer<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Inductance<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Information<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: InformationRate<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: InverseVelocity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Jerk<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Length<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: LinearDensityOfStates<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: LinearMassDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: LinearNumberDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: LinearNumberRate<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: LinearPowerDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Luminance<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: LuminousIntensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MagneticFieldStrength<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MagneticFlux<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MagneticFluxDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MagneticMoment<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MagneticPermeability<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Mass<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MassConcentration<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MassDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MassFlux<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MassPerEnergy<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MassRate<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Molality<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MolarConcentration<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MolarEnergy<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MolarFlux<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MolarHeatCapacity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MolarMass<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MolarRadioactivity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MolarVolume<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: MomentOfInertia<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Momentum<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Power<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: PowerRate<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Pressure<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: RadiantExposure<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Radioactivity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Ratio<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ReciprocalLength<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: SolidAngle<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: SpecificArea<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: SpecificHeatCapacity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: SpecificPower<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: SpecificRadioactivity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: SpecificVolume<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: SurfaceElectricCurrentDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: TemperatureCoefficient<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: TemperatureGradient<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: TemperatureInterval<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ThermalConductance<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ThermalConductivity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ThermalResistance<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: ThermodynamicTemperature<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Time<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Torque<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Velocity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: Volume<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: VolumeRate<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: VolumetricDensityOfStates<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: VolumetricHeatCapacity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: VolumetricNumberDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: VolumetricNumberRate<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

impl<N> Arguments<Dimension, N>
where N: Unit + Unit,

source

pub fn with<U, V>( self, quantity: VolumetricPowerDensity<U, V> ) -> QuantityArguments<Dimension, U, V, N>
where U: Units<V> + ?Sized, V: Num + Conversion<V>,

Specifies a quantity to display.

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

Trait Implementations§

source§

impl<D, N> Clone for Arguments<D, N>
where D: Dimension + ?Sized, N: Unit,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<D, N> Copy for Arguments<D, N>
where D: Dimension + ?Sized, N: Unit,

Auto Trait Implementations§

§

impl<D, N> Freeze for Arguments<D, N>
where D: ?Sized,

§

impl<D, N> RefUnwindSafe for Arguments<D, N>

§

impl<D, N> Send for Arguments<D, N>
where N: Send, D: ?Sized,

§

impl<D, N> Sync for Arguments<D, N>
where N: Sync, D: ?Sized,

§

impl<D, N> Unpin for Arguments<D, N>
where N: Unpin, D: ?Sized,

§

impl<D, N> UnwindSafe for Arguments<D, N>
where D: UnwindSafe + ?Sized, N: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.