pub struct NormalizerSettings {
pub steps: usize,
pub chunk_size: usize,
pub threshold: OrderedFloat<f32>,
pub include_encodings: Vec<String>,
pub exclude_encodings: Vec<String>,
pub preemptive_behaviour: bool,
pub language_threshold: OrderedFloat<f32>,
pub enable_fallback: bool,
}Fields§
§steps: usizeHow many steps (chunks) should be used from file
chunk_size: usizeEach chunk size
threshold: OrderedFloat<f32>Mess ration threshold
include_encodings: Vec<String>Specify probing encodings exactly
exclude_encodings: Vec<String>Exclude these encodings from probing
preemptive_behaviour: boolAllow try to find charset in the text
language_threshold: OrderedFloat<f32>Language detector threshold
enable_fallback: boolAllow fallback to ASCII / UTF-8
Trait Implementations§
Source§impl Clone for NormalizerSettings
impl Clone for NormalizerSettings
Source§fn clone(&self) -> NormalizerSettings
fn clone(&self) -> NormalizerSettings
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 NormalizerSettings
impl RefUnwindSafe for NormalizerSettings
impl Send for NormalizerSettings
impl Sync for NormalizerSettings
impl Unpin for NormalizerSettings
impl UnwindSafe for NormalizerSettings
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