pub struct FilterTool;Implementations§
Source§impl FilterTool
impl FilterTool
pub fn new() -> Self
pub fn build_trie<I, P>(&self, patterns: I) -> AhoCorasick
pub fn contains_sensitive(&self, text: &str, trie: &AhoCorasick) -> bool
pub fn replace_sensitive( &self, text: &str, trie: &AhoCorasick, replacement: &str, ) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterTool
impl RefUnwindSafe for FilterTool
impl Send for FilterTool
impl Sync for FilterTool
impl Unpin for FilterTool
impl UnsafeUnpin for FilterTool
impl UnwindSafe for FilterTool
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