pub struct MemoryChunk {
pub path: String,
pub start_line: usize,
pub end_line: usize,
pub text: String,
}Expand description
A chunk of text from a memory file with metadata.
Fields§
§path: StringSource file path (relative to workspace).
start_line: usizeStarting line number (1-indexed).
end_line: usizeEnding line number (1-indexed, inclusive).
text: StringThe text content of this chunk.
Trait Implementations§
Source§impl Clone for MemoryChunk
impl Clone for MemoryChunk
Source§fn clone(&self) -> MemoryChunk
fn clone(&self) -> MemoryChunk
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MemoryChunk
impl RefUnwindSafe for MemoryChunk
impl Send for MemoryChunk
impl Sync for MemoryChunk
impl Unpin for MemoryChunk
impl UnsafeUnpin for MemoryChunk
impl UnwindSafe for MemoryChunk
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