pub struct StandardAnalyzer { /* private fields */ }Expand description
Runs one tokenizer followed by filters in insertion order.
See crates/khive-text/docs/api/analyzer-pipeline.md.
Implementations§
Source§impl StandardAnalyzer
impl StandardAnalyzer
Sourcepub fn with_tokenizer(tokenizer: impl Tokenizer + 'static) -> Self
pub fn with_tokenizer(tokenizer: impl Tokenizer + 'static) -> Self
Create an analyzer with the given tokenizer and no filters.
Sourcepub fn filter(self, f: impl TokenFilter + 'static) -> Self
pub fn filter(self, f: impl TokenFilter + 'static) -> Self
Append a filter to the pipeline. Filters run in insertion order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StandardAnalyzer
impl !UnwindSafe for StandardAnalyzer
impl Forget for StandardAnalyzer
impl Freeze for StandardAnalyzerwhere
*const ArcInner<dyn Tokenizer> is !null: Freeze,
PhantomData<ArcInner<dyn Tokenizer>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Box<dyn TokenFilter>>: Freeze,
impl Move for StandardAnalyzer
impl Send for StandardAnalyzer
impl Sync for StandardAnalyzer
impl Unpin for StandardAnalyzer
impl UnsafeUnpin for StandardAnalyzerwhere
*const ArcInner<dyn Tokenizer> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Tokenizer>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Box<dyn TokenFilter>>: UnsafeUnpin,
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