pub enum PunctuationBoundaries {
Show 15 variants
FullStop,
ChineseComma,
Period,
Exclamation,
QuestionMark,
Semicolon,
RightParenthesis,
ArabicComma,
ArabicFullStop,
Danda,
DoubleDanda,
Pipe,
PipePipe,
Comma,
Colon,
}Expand description
These are the punctuations that are considered valid boundaries for a chunk to be created. Usage: - To increase quality, constrain to fewer boundaries. - To decrease latency, enable all. Default is automatically set to balance the trade-off between quality and latency based on the provider.
Variants§
FullStop
ChineseComma
Period
Exclamation
QuestionMark
Semicolon
RightParenthesis
ArabicComma
ArabicFullStop
Danda
DoubleDanda
Pipe
PipePipe
Comma
Colon
Trait Implementations§
Source§impl Clone for PunctuationBoundaries
impl Clone for PunctuationBoundaries
Source§fn clone(&self) -> PunctuationBoundaries
fn clone(&self) -> PunctuationBoundaries
Returns a copy 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 PunctuationBoundaries
impl Debug for PunctuationBoundaries
Source§impl Default for PunctuationBoundaries
impl Default for PunctuationBoundaries
Source§fn default() -> PunctuationBoundaries
fn default() -> PunctuationBoundaries
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PunctuationBoundaries
impl<'de> Deserialize<'de> for PunctuationBoundaries
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
Source§impl Hash for PunctuationBoundaries
impl Hash for PunctuationBoundaries
Source§impl Ord for PunctuationBoundaries
impl Ord for PunctuationBoundaries
Source§fn cmp(&self, other: &PunctuationBoundaries) -> Ordering
fn cmp(&self, other: &PunctuationBoundaries) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PunctuationBoundaries
impl PartialEq for PunctuationBoundaries
Source§impl PartialOrd for PunctuationBoundaries
impl PartialOrd for PunctuationBoundaries
Source§impl Serialize for PunctuationBoundaries
impl Serialize for PunctuationBoundaries
impl Copy for PunctuationBoundaries
impl Eq for PunctuationBoundaries
impl StructuralPartialEq for PunctuationBoundaries
Auto Trait Implementations§
impl Freeze for PunctuationBoundaries
impl RefUnwindSafe for PunctuationBoundaries
impl Send for PunctuationBoundaries
impl Sync for PunctuationBoundaries
impl Unpin for PunctuationBoundaries
impl UnwindSafe for PunctuationBoundaries
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.