pub trait Total<N: Dim = Dyn, D: DualNum<f64> + Copy = f64>: Residual<N, D>where
DefaultAllocator: Allocator<N>,{
type RealTotal: Total<N, f64>;
type LiftedTotal<D2: DualNum<f64, Inner = D> + Copy>: Total<N, D2>;
// Required methods
fn re_total(&self) -> Self::RealTotal;
fn lift_total<D2: DualNum<f64, Inner = D> + Copy>(
&self,
) -> Self::LiftedTotal<D2>;
fn ideal_gas_model(&self) -> &'static str;
fn ln_lambda3(&self, temperature: D) -> OVector<D, N>;
// Provided methods
fn ideal_gas_molar_helmholtz_energy(
&self,
temperature: D,
molar_volume: D,
molefracs: &OVector<D, N>,
) -> D { ... }
fn ideal_gas_helmholtz_energy(
&self,
temperature: Temperature<D>,
volume: MolarVolume<D>,
moles: &OVector<D, N>,
) -> MolarEnergy<D> { ... }
}Expand description
Required Associated Types§
type RealTotal: Total<N, f64>
type LiftedTotal<D2: DualNum<f64, Inner = D> + Copy>: Total<N, D2>
Required Methods§
fn re_total(&self) -> Self::RealTotal
fn lift_total<D2: DualNum<f64, Inner = D> + Copy>( &self, ) -> Self::LiftedTotal<D2>
fn ideal_gas_model(&self) -> &'static str
fn ln_lambda3(&self, temperature: D) -> OVector<D, N>
Provided Methods§
fn ideal_gas_molar_helmholtz_energy( &self, temperature: D, molar_volume: D, molefracs: &OVector<D, N>, ) -> D
fn ideal_gas_helmholtz_energy( &self, temperature: Temperature<D>, volume: MolarVolume<D>, moles: &OVector<D, N>, ) -> MolarEnergy<D>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".