Skip to main content

PredefinedMix

Enum PredefinedMix 

Source
pub enum PredefinedMix {
Show 147 variants Air, Amarillo, Ekofisk, GulfCoast, GulfCoastGasNIST, HighCO2, HighN2, NaturalGasSample, R401A, R401B, R401C, R402A, R402B, R403A, R403B, R404A, R405A, R406A, R407A, R407B, R407C, R407D, R407E, R407F, R407G, R407H, R407I, R408A, R409A, R409B, R410A, R410B, R411A, R411B, R412A, R413A, R414A, R414B, R415A, R415B, R416A, R417A, R417B, R417C, R418A, R419A, R419B, R420A, R421A, R421B, R422A, R422B, R422C, R422D, R422E, R423A, R424A, R425A, R426A, R427A, R427C, R428A, R429A, R430A, R431A, R432A, R433A, R433B, R433C, R434A, R435A, R436A, R436B, R436C, R437A, R438A, R439A, R440A, R441A, R442A, R443A, R444A, R444B, R445A, R446A, R447A, R447B, R448A, R448B, R449A, R449B, R449C, R450A, R451A, R451B, R452A, R452B, R452C, R453A, R454A, R454B, R454C, R455A, R456A, R457A, R457B, R457C, R458A, R459A, R459B, R460A, R460B, R460C, R461A, R462A, R463A, R464A, R465A, R466A, R467A, R468A, R468B, R468C, R469A, R470A, R470B, R471A, R472A, R472B, R473A, R474A, R475A, R476A, R500, R501, R502, R503, R504, R507A, R508A, R508B, R509A, R510A, R511A, R512A, R513A, TypicalNaturalGas,
}
Expand description

CoolProp predefined mixtures.

ยงExamples

Conversion between &str:

use std::str::FromStr;

use rfluids::prelude::*;

assert_eq!(PredefinedMix::R444A.as_ref(), "R444A.mix");
assert_eq!(PredefinedMix::from_str("R444A.mix"), Ok(PredefinedMix::R444A));
assert_eq!(PredefinedMix::from_str("R444A"), Ok(PredefinedMix::R444A));

ยงSee Also

Variantsยง

ยง

Air

Air mixture.

ยง

Amarillo

Amarillo natural gas mixture.

ยง

Ekofisk

Ekofisk natural gas mixture.

ยง

GulfCoast

Gulf Coast natural gas mixture.

ยง

GulfCoastGasNIST

NIST Gulf Coast gas mixture.

ยง

HighCO2

High-carbon-dioxide natural gas mixture.

ยง

HighN2

High-nitrogen natural gas mixture.

ยง

NaturalGasSample

Natural gas sample mixture.

ยง

R401A

Refrigerant blend R401A.

ยง

R401B

Refrigerant blend R401B.

ยง

R401C

Refrigerant blend R401C.

ยง

R402A

Refrigerant blend R402A.

ยง

R402B

Refrigerant blend R402B.

ยง

R403A

Refrigerant blend R403A.

ยง

R403B

Refrigerant blend R403B.

ยง

R404A

Refrigerant blend R404A.

ยง

R405A

Refrigerant blend R405A.

ยง

R406A

Refrigerant blend R406A.

ยง

R407A

Refrigerant blend R407A.

ยง

R407B

Refrigerant blend R407B.

ยง

R407C

Refrigerant blend R407C.

ยง

R407D

Refrigerant blend R407D.

ยง

R407E

Refrigerant blend R407E.

ยง

R407F

Refrigerant blend R407F.

ยง

R407G

Refrigerant blend R407G.

ยง

R407H

Refrigerant blend R407H.

ยง

R407I

Refrigerant blend R407I.

ยง

R408A

Refrigerant blend R408A.

ยง

R409A

Refrigerant blend R409A.

ยง

R409B

Refrigerant blend R409B.

ยง

R410A

Refrigerant blend R410A.

ยง

R410B

Refrigerant blend R410B.

ยง

R411A

Refrigerant blend R411A.

ยง

R411B

Refrigerant blend R411B.

ยง

R412A

Refrigerant blend R412A.

ยง

R413A

Refrigerant blend R413A.

ยง

R414A

Refrigerant blend R414A.

ยง

R414B

Refrigerant blend R414B.

ยง

R415A

Refrigerant blend R415A.

ยง

R415B

Refrigerant blend R415B.

ยง

R416A

Refrigerant blend R416A.

ยง

R417A

Refrigerant blend R417A.

ยง

R417B

Refrigerant blend R417B.

ยง

R417C

Refrigerant blend R417C.

ยง

R418A

Refrigerant blend R418A.

ยง

R419A

Refrigerant blend R419A.

ยง

R419B

Refrigerant blend R419B.

ยง

R420A

Refrigerant blend R420A.

ยง

R421A

Refrigerant blend R421A.

ยง

R421B

Refrigerant blend R421B.

ยง

R422A

Refrigerant blend R422A.

ยง

R422B

Refrigerant blend R422B.

ยง

R422C

Refrigerant blend R422C.

ยง

R422D

Refrigerant blend R422D.

ยง

R422E

Refrigerant blend R422E.

ยง

R423A

Refrigerant blend R423A.

ยง

R424A

Refrigerant blend R424A.

ยง

R425A

Refrigerant blend R425A.

ยง

R426A

Refrigerant blend R426A.

ยง

R427A

Refrigerant blend R427A.

ยง

R427C

Refrigerant blend R427C.

ยง

R428A

Refrigerant blend R428A.

ยง

R429A

Refrigerant blend R429A.

ยง

R430A

Refrigerant blend R430A.

ยง

R431A

Refrigerant blend R431A.

ยง

R432A

Refrigerant blend R432A.

ยง

R433A

Refrigerant blend R433A.

ยง

R433B

Refrigerant blend R433B.

ยง

R433C

Refrigerant blend R433C.

ยง

R434A

Refrigerant blend R434A.

ยง

R435A

Refrigerant blend R435A.

ยง

R436A

Refrigerant blend R436A.

ยง

R436B

Refrigerant blend R436B.

ยง

R436C

Refrigerant blend R436C.

ยง

R437A

Refrigerant blend R437A.

ยง

R438A

Refrigerant blend R438A.

ยง

R439A

Refrigerant blend R439A.

ยง

R440A

Refrigerant blend R440A.

ยง

R441A

Refrigerant blend R441A.

ยง

R442A

Refrigerant blend R442A.

ยง

R443A

Refrigerant blend R443A.

ยง

R444A

Refrigerant blend R444A.

ยง

R444B

Refrigerant blend R444B.

ยง

R445A

Refrigerant blend R445A.

ยง

R446A

Refrigerant blend R446A.

ยง

R447A

Refrigerant blend R447A.

ยง

R447B

Refrigerant blend R447B.

ยง

R448A

Refrigerant blend R448A.

ยง

R448B

Refrigerant blend R448B.

ยง

R449A

Refrigerant blend R449A.

ยง

R449B

Refrigerant blend R449B.

ยง

R449C

Refrigerant blend R449C.

ยง

R450A

Refrigerant blend R450A.

ยง

R451A

Refrigerant blend R451A.

ยง

R451B

Refrigerant blend R451B.

ยง

R452A

Refrigerant blend R452A.

ยง

R452B

Refrigerant blend R452B.

ยง

R452C

Refrigerant blend R452C.

ยง

R453A

Refrigerant blend R453A.

ยง

R454A

Refrigerant blend R454A.

ยง

R454B

Refrigerant blend R454B.

ยง

R454C

Refrigerant blend R454C.

ยง

R455A

Refrigerant blend R455A.

ยง

R456A

Refrigerant blend R456A.

ยง

R457A

Refrigerant blend R457A.

ยง

R457B

Refrigerant blend R457B.

ยง

R457C

Refrigerant blend R457C.

ยง

R458A

Refrigerant blend R458A.

ยง

R459A

Refrigerant blend R459A.

ยง

R459B

Refrigerant blend R459B.

ยง

R460A

Refrigerant blend R460A.

ยง

R460B

Refrigerant blend R460B.

ยง

R460C

Refrigerant blend R460C.

ยง

R461A

Refrigerant blend R461A.

ยง

R462A

Refrigerant blend R462A.

ยง

R463A

Refrigerant blend R463A.

ยง

R464A

Refrigerant blend R464A.

ยง

R465A

Refrigerant blend R465A.

ยง

R466A

Refrigerant blend R466A.

ยง

R467A

Refrigerant blend R467A.

ยง

R468A

Refrigerant blend R468A.

ยง

R468B

Refrigerant blend R468B.

ยง

R468C

Refrigerant blend R468C.

ยง

R469A

Refrigerant blend R469A.

ยง

R470A

Refrigerant blend R470A.

ยง

R470B

Refrigerant blend R470B.

ยง

R471A

Refrigerant blend R471A.

ยง

R472A

Refrigerant blend R472A.

ยง

R472B

Refrigerant blend R472B.

ยง

R473A

Refrigerant blend R473A.

ยง

R474A

Refrigerant blend R474A.

ยง

R475A

Refrigerant blend R475A.

ยง

R476A

Refrigerant blend R476A.

ยง

R500

Refrigerant blend R500.

ยง

R501

Refrigerant blend R501.

ยง

R502

Refrigerant blend R502.

ยง

R503

Refrigerant blend R503.

ยง

R504

Refrigerant blend R504.

ยง

R507A

Refrigerant blend R507A.

ยง

R508A

Refrigerant blend R508A.

ยง

R508B

Refrigerant blend R508B.

ยง

R509A

Refrigerant blend R509A.

ยง

R510A

Refrigerant blend R510A.

ยง

R511A

Refrigerant blend R511A.

ยง

R512A

Refrigerant blend R512A.

ยง

R513A

Refrigerant blend R513A.

ยง

TypicalNaturalGas

Typical natural gas mixture.

Trait Implementationsยง

Sourceยง

impl AsRef<str> for PredefinedMix

Sourceยง

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Sourceยง

impl Clone for PredefinedMix

Sourceยง

fn clone(&self) -> PredefinedMix

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Copy for PredefinedMix

Sourceยง

impl Debug for PredefinedMix

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl DefaultBackend for PredefinedMix

Sourceยง

fn default_backend(&self) -> Backend

Returns default CoolProp backend for this Substance. Read more
Sourceยง

impl Eq for PredefinedMix

Sourceยง

impl<'_derivative_strum> From<&'_derivative_strum PredefinedMix> for &'static str

Sourceยง

fn from(x: &'_derivative_strum PredefinedMix) -> &'static str

Converts to this type from the input type.
Sourceยง

impl From<PredefinedMix> for &'static str

Sourceยง

fn from(x: PredefinedMix) -> &'static str

Converts to this type from the input type.
Sourceยง

impl From<PredefinedMix> for Substance

Sourceยง

fn from(value: PredefinedMix) -> Self

Converts to this type from the input type.
Sourceยง

impl FromStr for PredefinedMix

Sourceยง

type Err = ParseError

The associated error which can be returned from parsing.
Sourceยง

fn from_str(s: &str) -> Result<PredefinedMix, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Sourceยง

impl PartialEq for PredefinedMix

Sourceยง

fn eq(&self, other: &PredefinedMix) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Sourceยง

impl StructuralPartialEq for PredefinedMix

Sourceยง

impl TryFrom<&str> for PredefinedMix

Sourceยง

type Error = ParseError

The type returned in the event of a conversion error.
Sourceยง

fn try_from(s: &str) -> Result<PredefinedMix, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Sourceยง

impl TryFrom<PredefinedMix> for Fluid<Undefined>

Sourceยง

fn try_from(value: PredefinedMix) -> Result<Self, Self::Error>

Tries to create and return a new Fluid instance with Undefined state variant from PredefinedMix.

If you need advanced control over backend selection, consider using Fluid::builder.

ยงErrors

Returns a FluidBuildError for unsupported predefined mixtures.

ยงExamples
use rfluids::prelude::*;

assert!(Fluid::try_from(PredefinedMix::R444A).is_ok());
assert!(Fluid::try_from(PredefinedMix::R401A).is_err());
ยงSee Also
Sourceยง

type Error = FluidBuildError

The type returned in the event of a conversion error.

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.