pub struct CodeChunker { /* private fields */ }Expand description
Language-aware code chunker.
Implementations§
Source§impl CodeChunker
impl CodeChunker
Sourcepub fn with_fallback_window(self, window: usize) -> Self
pub fn with_fallback_window(self, window: usize) -> Self
Configure the fallback RecursiveCharSplitter window size.
Sourcepub fn with_min_chunk_chars(self, min: usize) -> Self
pub fn with_min_chunk_chars(self, min: usize) -> Self
Discard chunks shorter than min characters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeChunker
impl RefUnwindSafe for CodeChunker
impl Send for CodeChunker
impl Sync for CodeChunker
impl Unpin for CodeChunker
impl UnsafeUnpin for CodeChunker
impl UnwindSafe for CodeChunker
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