pub struct DocChunk {
pub text: String,
pub headings: Option<Vec<String>>,
pub doc_items: Vec<ChunkItem>,
}Expand description
One chunk — the analogue of docling’s DocChunk (text + DocMeta).
Fields§
§text: StringThe chunk body (markdown-flavoured, unescaped — same text docling puts
in DocChunk.text).
headings: Option<Vec<String>>The heading path above this chunk, outermost first (DocMeta.headings;
None when the chunk sits above any heading).
doc_items: Vec<ChunkItem>The document items the chunk was built from (DocMeta.doc_items).
Trait Implementations§
impl StructuralPartialEq for DocChunk
Auto Trait Implementations§
impl Forget for DocChunk
impl Freeze for DocChunkwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ChunkItem>: Freeze,
impl Move for DocChunk
impl RefUnwindSafe for DocChunk
impl Send for DocChunkwhere
RawVecInner: Send,
impl Sync for DocChunkwhere
RawVecInner: Sync,
impl Unpin for DocChunk
impl UnsafeUnpin for DocChunkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ChunkItem>: UnsafeUnpin,
impl UnwindSafe for DocChunkwhere
RawVecInner: UnwindSafe,
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