Skip to main content

GroupCount

Trait GroupCount 

Source
pub trait GroupCount: Copy {
    // Required methods
    fn into_groups(
        chemical_record: ChemicalRecord,
    ) -> (Identifier, Vec<(String, Self)>, Vec<([usize; 2], Self)>);
    fn into_f64(self) -> f64;
}
Expand description

The type that is used to account for the multiplicity of groups.

In practice f64 for group-based models and () for segment-based models.

Required Methods§

Source

fn into_groups( chemical_record: ChemicalRecord, ) -> (Identifier, Vec<(String, Self)>, Vec<([usize; 2], Self)>)

Source

fn into_f64(self) -> f64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GroupCount for ()

Source§

fn into_groups( chemical_record: ChemicalRecord, ) -> (Identifier, Vec<(String, ())>, Vec<([usize; 2], ())>)

Source§

fn into_f64(self) -> f64

Source§

impl GroupCount for f64

Source§

fn into_groups( chemical_record: ChemicalRecord, ) -> (Identifier, Vec<(String, f64)>, Vec<([usize; 2], f64)>)

Source§

fn into_f64(self) -> f64

Implementors§