Struct llm_chain::text_splitter::NaiveWhitespaceSplitter
source · pub struct NaiveWhitespaceSplitter;Trait Implementations§
source§impl TextSplitter<String> for NaiveWhitespaceSplitter
impl TextSplitter<String> for NaiveWhitespaceSplitter
fn split_text( &self, doc: &str, max_tokens_per_chunk: usize, chunk_overlap: usize ) -> Result<Vec<String>, TokenizerError>
Auto Trait Implementations§
impl RefUnwindSafe for NaiveWhitespaceSplitter
impl Send for NaiveWhitespaceSplitter
impl Sync for NaiveWhitespaceSplitter
impl Unpin for NaiveWhitespaceSplitter
impl UnwindSafe for NaiveWhitespaceSplitter
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