pub struct TextChunk {
pub content: String,
pub token_count: usize,
pub start_index: usize,
pub end_index: usize,
}Expand description
A text chunk with metadata
Fields§
§content: String§token_count: usize§start_index: usize§end_index: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for TextChunk
impl RefUnwindSafe for TextChunk
impl Send for TextChunk
impl Sync for TextChunk
impl Unpin for TextChunk
impl UnsafeUnpin for TextChunk
impl UnwindSafe for TextChunk
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