pub struct ChunkOutput {
pub content: String,
pub byte_range: Range<u64>,
pub line_range: Option<Range<u32>>,
pub parent_index: Option<usize>,
pub depth: u8,
pub metadata: ChunkOutputMetadata,
}Expand description
Output from a chunker.
Fields§
§content: StringChunk content
byte_range: Range<u64>Byte range in source
line_range: Option<Range<u32>>Line range if applicable
parent_index: Option<usize>Index of parent chunk (in output array)
depth: u8Depth in hierarchy
metadata: ChunkOutputMetadataAdditional metadata
Trait Implementations§
Source§impl Clone for ChunkOutput
impl Clone for ChunkOutput
Auto Trait Implementations§
impl Freeze for ChunkOutput
impl RefUnwindSafe for ChunkOutput
impl Send for ChunkOutput
impl Sync for ChunkOutput
impl Unpin for ChunkOutput
impl UnsafeUnpin for ChunkOutput
impl UnwindSafe for ChunkOutput
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