pub struct Gas {
pub name: &'static str,
pub chemical_formula: &'static str,
pub specific_heat_cp: f32,
pub specific_heat_cv: f32,
pub standard_density: f32,
pub molar_mass: f32,
}Expand description
Properties of a gas
Fields§
§name: &'static str§chemical_formula: &'static str§specific_heat_cp: f32§specific_heat_cv: f32§standard_density: f32§molar_mass: f32Implementations§
Source§impl Gas
impl Gas
pub fn density(&self, temperature: Temperature, pressure: Pressure) -> f32
pub fn name(&self) -> &'static str
pub fn formula(&self) -> &'static str
pub fn specific_heat_cp(&self) -> f32
pub fn specific_heat_cv(&self) -> f32
pub fn specific_heat_ratio(&self) -> f32
pub fn standard_density(&self) -> String
pub fn molar_mass(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gas
impl RefUnwindSafe for Gas
impl Send for Gas
impl Sync for Gas
impl Unpin for Gas
impl UnwindSafe for Gas
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more