pub struct Chunk {
pub path: String,
pub start_line: u32,
pub end_line: u32,
pub content: String,
pub prefix: String,
}Expand description
One indexable unit: a window of lines from a single file plus the metadata the store and renderer need.
Fields§
§path: StringRepo-relative path, forward-slashed.
start_line: u321-based start line of the window (inclusive).
end_line: u321-based end line of the window (inclusive).
content: StringRaw source lines — the snippet shown to the user.
prefix: StringContextual prefix prepended before lexical indexing / embedding.
Implementations§
Trait Implementations§
impl Eq for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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