Struct uom::si::fmt::Arguments

source ·
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§

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: 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: 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: 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: 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: 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: 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: ?Sized, N> RefUnwindSafe for Arguments<D, N>where N: RefUnwindSafe,

§

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> Unpin for Arguments<D, N>where N: Unpin,

§

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

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.