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
pub fn with<U, V>(
self,
quantity: Acceleration<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: AmountOfSubstance<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Angle<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: AngularAcceleration<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: AngularJerk<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: AngularVelocity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Area<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: AvailableEnergy<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Capacitance<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: CatalyticActivity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: CatalyticActivityConcentration<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Curvature<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: ElectricCharge<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: ElectricCurrent<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: ElectricPotential<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: ElectricalConductance<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: ElectricalResistance<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Energy<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Force<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Frequency<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: HeatCapacity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: HeatFluxDensity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: HeatTransfer<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Inductance<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Information<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: InformationRate<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Jerk<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Length<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Luminance<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: LuminousIntensity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MagneticFlux<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MagneticFluxDensity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Mass<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MassConcentration<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MassDensity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MassRate<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MolarConcentration<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MolarEnergy<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MolarHeatCapacity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: MolarMass<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Momentum<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Power<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Pressure<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Ratio<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: SpecificHeatCapacity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: SolidAngle<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: RadiantExposure<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: TemperatureInterval<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: ThermalConductivity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: ThermodynamicTemperature<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Time<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Torque<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Velocity<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: Volume<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
pub fn with<U, V>(
self,
quantity: VolumeRate<U, V>
) -> QuantityArguments<Dimension, U, V, N> where
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
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.
Trait Implementations
Auto Trait Implementations
impl<D: ?Sized, N> RefUnwindSafe for Arguments<D, N> where
N: RefUnwindSafe,
impl<D: ?Sized, N> UnwindSafe for Arguments<D, N> where
N: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more