pub enum ChunkingType {
ByWords,
ByLines,
ByCharacterLength,
BySentence,
}Expand description
Enum representing different types of Chunking.
Variants§
ByWords
By the word count.
ByLines
By the line count.
ByCharacterLength
By the char length.
BySentence
By sentence.
Trait Implementations§
Source§impl Clone for ChunkingType
impl Clone for ChunkingType
Source§fn clone(&self) -> ChunkingType
fn clone(&self) -> ChunkingType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkingType
impl Debug for ChunkingType
Source§impl Default for ChunkingType
impl Default for ChunkingType
Source§fn default() -> ChunkingType
fn default() -> ChunkingType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChunkingType
impl<'de> Deserialize<'de> for ChunkingType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChunkingType
impl RefUnwindSafe for ChunkingType
impl Send for ChunkingType
impl Sync for ChunkingType
impl Unpin for ChunkingType
impl UnwindSafe for ChunkingType
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