pub trait FromSegments<T>: Clone {
// Required method
fn from_segments(segments: &[(Self, T)]) -> Result<Self, ParameterError>;
}
Expand description
Trait for models that implement a homosegmented group contribution method
Required Methods§
Sourcefn from_segments(segments: &[(Self, T)]) -> Result<Self, ParameterError>
fn from_segments(segments: &[(Self, T)]) -> Result<Self, ParameterError>
Constructs the 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.