pub struct WhiteSpaceConfig {
pub max_tokens_per_chunk: u32,
pub max_overlap_tokens: u32,
}Fields§
§max_tokens_per_chunk: u32Maximum tokens per chunk
max_overlap_tokens: u32Maximum overlapping tokens between chunks
Trait Implementations§
Source§impl Clone for WhiteSpaceConfig
impl Clone for WhiteSpaceConfig
Source§fn clone(&self) -> WhiteSpaceConfig
fn clone(&self) -> WhiteSpaceConfig
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 WhiteSpaceConfig
impl Debug for WhiteSpaceConfig
Source§impl<'de> Deserialize<'de> for WhiteSpaceConfig
impl<'de> Deserialize<'de> for WhiteSpaceConfig
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 WhiteSpaceConfig
impl RefUnwindSafe for WhiteSpaceConfig
impl Send for WhiteSpaceConfig
impl Sync for WhiteSpaceConfig
impl Unpin for WhiteSpaceConfig
impl UnwindSafe for WhiteSpaceConfig
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