Struct feos_core::parameter::PureRecord
source · [−]pub struct PureRecord<M, I> {
pub identifier: Identifier,
pub molarweight: f64,
pub model_record: M,
pub ideal_gas_record: Option<I>,
}
Expand description
A collection of parameters of a pure substance.
Fields
identifier: Identifier
molarweight: f64
model_record: M
ideal_gas_record: Option<I>
Implementations
sourceimpl<M, I> PureRecord<M, I>
impl<M, I> PureRecord<M, I>
sourcepub fn new(
identifier: Identifier,
molarweight: f64,
model_record: M,
ideal_gas_record: Option<I>
) -> Self
pub fn new(
identifier: Identifier,
molarweight: f64,
model_record: M,
ideal_gas_record: Option<I>
) -> Self
Create a new PureRecord
.
sourcepub fn from_segments<S>(identifier: Identifier, segments: S) -> Self where
M: FromSegments,
I: FromSegments,
S: IntoIterator<Item = (SegmentRecord<M, I>, f64)>,
pub fn from_segments<S>(identifier: Identifier, segments: S) -> Self where
M: FromSegments,
I: FromSegments,
S: IntoIterator<Item = (SegmentRecord<M, I>, f64)>,
Update the PureRecord
from segment counts.
The FromSegments trait needs to be implemented for both the model record and the ideal gas record.
Trait Implementations
sourceimpl<M: Clone, I: Clone> Clone for PureRecord<M, I>
impl<M: Clone, I: Clone> Clone for PureRecord<M, I>
sourcefn clone(&self) -> PureRecord<M, I>
fn clone(&self) -> PureRecord<M, I>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<M: Debug, I: Debug> Debug for PureRecord<M, I>
impl<M: Debug, I: Debug> Debug for PureRecord<M, I>
sourceimpl<'de, M, I> Deserialize<'de> for PureRecord<M, I> where
M: Deserialize<'de>,
I: Deserialize<'de>,
I: Default,
impl<'de, M, I> Deserialize<'de> for PureRecord<M, I> where
M: Deserialize<'de>,
I: Deserialize<'de>,
I: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<M, I> Display for PureRecord<M, I> where
M: Display,
I: Display,
impl<M, I> Display for PureRecord<M, I> where
M: Display,
I: Display,
Auto Trait Implementations
impl<M, I> RefUnwindSafe for PureRecord<M, I> where
I: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, I> Send for PureRecord<M, I> where
I: Send,
M: Send,
impl<M, I> Sync for PureRecord<M, I> where
I: Sync,
M: Sync,
impl<M, I> Unpin for PureRecord<M, I> where
I: Unpin,
M: Unpin,
impl<M, I> UnwindSafe for PureRecord<M, I> where
I: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more