#[non_exhaustive]pub struct GasMix {
pub oxygen: GasFraction,
pub helium: GasFraction,
pub usage: Option<GasUsage>,
}Expand description
A breathing gas.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.oxygen: GasFractionOxygen share.
helium: GasFractionHelium share; 0 for nitrox and air.
usage: Option<GasUsage>What the mix is used for, when the device says.
Implementations§
Source§impl GasMix
impl GasMix
Sourcepub const fn new(
oxygen: GasFraction,
helium: GasFraction,
usage: Option<GasUsage>,
) -> Self
pub const fn new( oxygen: GasFraction, helium: GasFraction, usage: Option<GasUsage>, ) -> Self
A mix of oxygen and helium, the rest nitrogen.
Trait Implementations§
impl Copy for GasMix
impl StructuralPartialEq for GasMix
Auto Trait Implementations§
impl Forget for GasMix
impl Freeze for GasMix
impl Move for GasMix
impl RefUnwindSafe for GasMix
impl Send for GasMix
impl Sync for GasMix
impl Unpin for GasMix
impl UnsafeUnpin for GasMix
impl UnwindSafe for GasMix
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