pub trait FromSegmentsBinary<T>: Clone {
// Required method
fn from_segments_binary(
segments: &[(f64, T, T)],
) -> Result<Self, ParameterError>;
}
Expand description
Trait for models that implement a homosegmented group contribution method and have a combining rule for binary interaction parameters.
Required Methods§
Sourcefn from_segments_binary(
segments: &[(f64, T, T)],
) -> Result<Self, ParameterError>
fn from_segments_binary( segments: &[(f64, T, T)], ) -> Result<Self, ParameterError>
Constructs the binary record from a list of segment records with their number of occurences.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.