pub struct AstChunk {
pub chunk_id: ChunkId,
pub document_id: DocumentId,
pub segments: Vec<ByteRange>,
pub envelope: ByteRange,
pub line_index_range: LineIndexRange,
pub scopes: Vec<ScopeFrame>,
pub metrics: ChunkMetrics,
}Expand description
A structural AST chunk — the output of the chunking stage.
Fields§
§chunk_id: ChunkIdChunk identifier (sequential within a document).
document_id: DocumentIdParent document identifier.
segments: Vec<ByteRange>Byte ranges of source segments comprising this chunk.
envelope: ByteRangeMinimum bounding byte range covering all segments.
line_index_range: LineIndexRange0-based line range in the original source.
scopes: Vec<ScopeFrame>Scope ancestry chain (outermost first).
metrics: ChunkMetricsStructural metrics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AstChunk
impl RefUnwindSafe for AstChunk
impl Send for AstChunk
impl Sync for AstChunk
impl Unpin for AstChunk
impl UnsafeUnpin for AstChunk
impl UnwindSafe for AstChunk
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