pub struct AhoCorasickBuilder<K> { /* private fields */ }
Expand description
AhoCorasick
を構築するための構造体。
Implementations§
Source§impl<K: Copy + Hash + Eq> AhoCorasickBuilder<K>
impl<K: Copy + Hash + Eq> AhoCorasickBuilder<K>
Sourcepub fn new() -> Self
pub fn new() -> Self
AhoCorasickBuilder
を生成する。
Sourcepub fn add<I>(&mut self, pat: I)where
I: IntoIterator<Item = K>,
pub fn add<I>(&mut self, pat: I)where
I: IntoIterator<Item = K>,
パターンpat
を追加する。
Sourcepub fn build(self) -> AhoCorasick<K>
pub fn build(self) -> AhoCorasick<K>
AhoCorasick
を構築する。
Auto Trait Implementations§
impl<K> Freeze for AhoCorasickBuilder<K>
impl<K> RefUnwindSafe for AhoCorasickBuilder<K>where
K: RefUnwindSafe,
impl<K> !Send for AhoCorasickBuilder<K>
impl<K> !Sync for AhoCorasickBuilder<K>
impl<K> Unpin for AhoCorasickBuilder<K>where
K: Unpin,
impl<K> UnwindSafe for AhoCorasickBuilder<K>where
K: UnwindSafe + RefUnwindSafe,
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