fn base(&self) -> f32 {
        use std::cmp::Ordering::Equal;

        let mut bases = self
            .tokens
            .iter()
            .map(|token| token.base())
            .collect::<Vec<f32>>();

        bases.sort_by(|a, b| a.partial_cmp(b).unwrap_or(Equal));

        if let Some(base) = bases.first() {
            *base
        } else {
            0.0
        }
    }
/// Takes the lowest base among a collection of token
Takes the lowest base among a collection of token
Takes the lowest base among a collection of token
fn base(&self) -> f32 {
        use std::cmp::Ordering::Equal;
        let mut bases = self
            .tokens
            .iter()
            .map(|token| token.base())
            .collect::<Vec<f32>>();
        bases.sort_by(|a, b| a.partial_cmp(b).unwrap_or(Equal));
        if let Some(base) = bases.first() {
            *base
        } else {
            0.0
        }
    }
fn base ( & self ) -> f32 { use std :: cmp :: Ordering :: Equal ; let mut bases = self . tokens . iter ( ) . map ( | token | token . base ( ) ) . collect :: < Vec < f32 > > ( ) ; bases . sort_by ( | a , b | a . partial_cmp ( b ) . unwrap_or ( Equal ) ) ; if let Some ( base ) = bases . first ( ) { * base } else { 0.0 } }
Takes the lowest base among a collection of token
Takes the lowest base among a collection of token
&self