pub struct CapacitanceRate(/* private fields */);Expand description
Capacitance rate (m_dot * c_p) of a working fluid in a heat exchanger.
The value must be strictly positive.
Implementations§
Source§impl CapacitanceRate
impl CapacitanceRate
Sourcepub fn new<U>(value: f64) -> ConstraintResult<Self>
pub fn new<U>(value: f64) -> ConstraintResult<Self>
Create a CapacitanceRate from a scalar value.
§Errors
Returns Err if the value is not strictly positive.
Sourcepub fn from_quantity(quantity: ThermalConductance) -> ConstraintResult<Self>
pub fn from_quantity(quantity: ThermalConductance) -> ConstraintResult<Self>
Create a CapacitanceRate from a quantity with thermal-conductance units.
§Errors
Returns Err if the quantity is not strictly positive.
Sourcepub fn from_mass_rate_and_specific_heat(
mass_rate: MassRate,
specific_heat: SpecificHeatCapacity,
) -> ConstraintResult<Self>
pub fn from_mass_rate_and_specific_heat( mass_rate: MassRate, specific_heat: SpecificHeatCapacity, ) -> ConstraintResult<Self>
Create a CapacitanceRate from a mass rate and specific heat
capacity.
§Errors
Returns Err if either operand is not strictly positive.
Trait Implementations§
Source§impl Clone for CapacitanceRate
impl Clone for CapacitanceRate
Source§fn clone(&self) -> CapacitanceRate
fn clone(&self) -> CapacitanceRate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapacitanceRate
impl Debug for CapacitanceRate
Source§impl Deref for CapacitanceRate
impl Deref for CapacitanceRate
Source§type Target = Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Th = NInt<UInt<UTerm, B1>>, J = Z0, M = PInt<UInt<UTerm, B1>>, N = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, I = Z0, Kind = dyn Kind>, dyn Units<f64, mass = kilogram, luminous_intensity = candela, thermodynamic_temperature = kelvin, length = meter, electric_current = ampere, time = second, amount_of_substance = mole>, f64>
type Target = Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Th = NInt<UInt<UTerm, B1>>, J = Z0, M = PInt<UInt<UTerm, B1>>, N = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, I = Z0, Kind = dyn Kind>, dyn Units<f64, mass = kilogram, luminous_intensity = candela, thermodynamic_temperature = kelvin, length = meter, electric_current = ampere, time = second, amount_of_substance = mole>, f64>
The resulting type after dereferencing.
Source§impl PartialEq for CapacitanceRate
impl PartialEq for CapacitanceRate
Source§impl PartialOrd for CapacitanceRate
impl PartialOrd for CapacitanceRate
impl Copy for CapacitanceRate
impl StructuralPartialEq for CapacitanceRate
Auto Trait Implementations§
impl Freeze for CapacitanceRate
impl RefUnwindSafe for CapacitanceRate
impl Send for CapacitanceRate
impl Sync for CapacitanceRate
impl Unpin for CapacitanceRate
impl UnwindSafe for CapacitanceRate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more