pub struct ChunkOptions {
pub max_chunk_tokens: usize,
pub preserve_recent: usize,
}Expand description
Options for chunking.
Fields§
§max_chunk_tokens: usizeMaximum tokens per chunk.
preserve_recent: usizeNumber of recent lines to always preserve.
Trait Implementations§
Source§impl Clone for ChunkOptions
impl Clone for ChunkOptions
Source§fn clone(&self) -> ChunkOptions
fn clone(&self) -> ChunkOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChunkOptions
impl Debug for ChunkOptions
Auto Trait Implementations§
impl Freeze for ChunkOptions
impl RefUnwindSafe for ChunkOptions
impl Send for ChunkOptions
impl Sync for ChunkOptions
impl Unpin for ChunkOptions
impl UnsafeUnpin for ChunkOptions
impl UnwindSafe for ChunkOptions
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