pub struct CodeSlice {
pub path: String,
pub start_line: usize,
pub end_line: usize,
pub line_count: usize,
pub estimated_tokens: usize,
pub content: String,
}Expand description
Exact code slice returned after orientation.
Fields§
§path: StringRepository-relative path.
start_line: usizeOne-based start line.
end_line: usizeOne-based end line.
line_count: usizeTotal source line count.
estimated_tokens: usizeEstimated tokens for the slice.
content: StringSlice content.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeSlice
impl RefUnwindSafe for CodeSlice
impl Send for CodeSlice
impl Sync for CodeSlice
impl Unpin for CodeSlice
impl UnwindSafe for CodeSlice
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