pub struct Config<'a> {
pub words: &'a WordSet,
pub allowed: &'a CharSet,
pub helper_allowed: &'a CharSet,
pub max_number_combinations: usize,
}Expand description
What _hide_swear_words reads besides its arguments.
Fields§
§words: &'a WordSetCENSOR_WORDSET.
allowed: &'a CharSetThe module-level ALLOWED_CHARACTERS, which splits the text into words.
helper_allowed: &'a CharSetself.ALLOWED_CHARACTERS, which the helpers that look ahead for the next words use.
max_number_combinations: usizeMAX_NUMBER_COMBINATIONS, at least 1.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Config<'a>
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnsafeUnpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
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