Trait Score

Source
pub trait Score {
    // Required method
    fn score(&self) -> f32;
}

Required Methods§

Source

fn score(&self) -> f32

Calculates a relative value “score” for an item which relates to how likely it is the item represents text.

This value can be used to determine the likeliness of the item representing text.

Implementations on Foreign Types§

Source§

impl Score for char

Source§

fn score(&self) -> f32

Source§

impl Score for String

Source§

fn score(&self) -> f32

Implementors§