pub struct StreamedBody {
pub in_scope: Vec<(String, String)>,
pub doc_in_scope: Vec<(String, String)>,
pub background: Option<Range<usize>>,
pub children: Vec<Range<usize>>,
pub has_revisions: bool,
pub has_cross_block_features: bool,
}Expand description
Index of a WordprocessingML main document part produced by scan_body_children.
Fields§
§in_scope: Vec<(String, String)>Namespace declarations in scope inside <w:body> (nearest declaration first: <w:body>
overrides <w:document>).
doc_in_scope: Vec<(String, String)>Namespace declarations in scope directly on <w:document> (for parsing <w:background>).
background: Option<Range<usize>>Byte range of <w:background> directly under <w:document>, if present.
children: Vec<Range<usize>>Exact byte ranges of every direct child element of <w:body> in document order.
has_revisions: booltrue when any tracked-change element was encountered inside the part.
has_cross_block_features: booltrue when a comment marker, field instruction, or alternate-content block at body level
requires cross-paragraph whole-document analysis.
Trait Implementations§
Source§impl Clone for StreamedBody
impl Clone for StreamedBody
Auto Trait Implementations§
impl Forget for StreamedBody
impl Freeze for StreamedBody
impl Move for StreamedBody
impl RefUnwindSafe for StreamedBody
impl Send for StreamedBodywhere
RawVecInner: Send,
impl Sync for StreamedBodywhere
RawVecInner: Sync,
impl Unpin for StreamedBody
impl UnsafeUnpin for StreamedBodywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<Range<usize>>: UnsafeUnpin,
impl UnwindSafe for StreamedBodywhere
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