pub struct SequentialStrategy;Expand description
Default single-threaded splitting strategy.
Trait Implementations§
Source§impl Clone for SequentialStrategy
impl Clone for SequentialStrategy
impl Copy for SequentialStrategy
Source§impl Debug for SequentialStrategy
impl Debug for SequentialStrategy
Source§impl Default for SequentialStrategy
impl Default for SequentialStrategy
Source§impl SplitterStrategy for SequentialStrategy
impl SplitterStrategy for SequentialStrategy
Source§fn split(
&self,
splitter: &RecursiveCharacterTextSplitter,
text: &str,
) -> Vec<Chunk>
fn split( &self, splitter: &RecursiveCharacterTextSplitter, text: &str, ) -> Vec<Chunk>
Splits
text into chunks.Source§fn split_content(
&self,
splitter: &RecursiveCharacterTextSplitter,
text: &str,
) -> Vec<String>
fn split_content( &self, splitter: &RecursiveCharacterTextSplitter, text: &str, ) -> Vec<String>
Splits
text into chunk contents. Read moreAuto Trait Implementations§
impl Freeze for SequentialStrategy
impl RefUnwindSafe for SequentialStrategy
impl Send for SequentialStrategy
impl Sync for SequentialStrategy
impl Unpin for SequentialStrategy
impl UnsafeUnpin for SequentialStrategy
impl UnwindSafe for SequentialStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more