pub struct Chunk {
pub part: Part,
pub key: String,
pub path: String,
pub lines: Vec<usize>,
pub text: String,
pub about: String,
pub sha: String,
}Expand description
One unit sent to the model: a part of one file, its lines numbered.
Fields§
§part: Part§key: Stringpath for a whole file, path#n for its n-th piece, path#families / path#decisions.
path: String§lines: Vec<usize>The source lines it holds (1-based), in order.
text: StringThe text as the model sees it: NNN| line.
about: StringFor a knowledge file: the scope its knowledge base states for itself (the skill’s description).
sha: StringHash of text and about: an import is redone only when one of them changed.
Trait Implementations§
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