pub struct NaiveSettings {
pub words: Vec<String>,
pub probs: Vec<f64>,
}Expand description
Contains the words that are used in the NaiveDetector.
Loads words from files.
Fields§
§words: Vec<String>§probs: Vec<f64>Implementations§
Source§impl NaiveSettings
impl NaiveSettings
pub fn new_from_string(content: String) -> NaiveSettings
Trait Implementations§
Source§impl Clone for NaiveSettings
impl Clone for NaiveSettings
Source§fn clone(&self) -> NaiveSettings
fn clone(&self) -> NaiveSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NaiveSettings
impl RefUnwindSafe for NaiveSettings
impl Send for NaiveSettings
impl Sync for NaiveSettings
impl Unpin for NaiveSettings
impl UnsafeUnpin for NaiveSettings
impl UnwindSafe for NaiveSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more