pub struct RecursiveChunker<'sep> { /* private fields */ }
Expand description
Recursive chunking algorithm. Splits based on the first separator, then recurses with the next separator. Useful for splitting into logical units, e.g. split by paragraphs and then sentences.
Trait Implementations§
Source§impl<'a> Chunker<'a> for RecursiveChunker<'a>
impl<'a> Chunker<'a> for RecursiveChunker<'a>
Source§impl<'sep> Debug for RecursiveChunker<'sep>
impl<'sep> Debug for RecursiveChunker<'sep>
Source§impl<'sep> Default for RecursiveChunker<'sep>
impl<'sep> Default for RecursiveChunker<'sep>
Source§fn default() -> RecursiveChunker<'sep>
fn default() -> RecursiveChunker<'sep>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'sep> Freeze for RecursiveChunker<'sep>
impl<'sep> RefUnwindSafe for RecursiveChunker<'sep>
impl<'sep> Send for RecursiveChunker<'sep>
impl<'sep> Sync for RecursiveChunker<'sep>
impl<'sep> Unpin for RecursiveChunker<'sep>
impl<'sep> UnwindSafe for RecursiveChunker<'sep>
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