pub struct TextChunk {
pub text: String,
pub start: usize,
pub end: usize,
pub index: usize,
}Expand description
A text chunk with metadata.
Fields§
§text: StringThe chunk text content.
start: usizeStart char offset in the original text.
end: usizeEnd char offset in the original text.
index: usizeChunk index (0-based).
Trait 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