pub struct InlineRun {
pub text: String,
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub strike: bool,
pub script: Script,
pub code: bool,
pub formula: bool,
}Expand description
One styled segment of a Node::InlineGroup — the docling.rs analogue of a
TextItem inside an InlineGroup, carrying the ancestor formatting docling
tracks. text is already whitespace-normalized/trimmed (one segment per
source text node). A hyperlink is intentionally not stored: DocLang drops the
target inside inline scope, keeping only the anchor text.
Fields§
§text: String§bold: bool§italic: bool§underline: bool§strike: bool§script: Script§code: bool§formula: boolAn inline equation (text holds LaTeX): DocLang renders <formula>…,
Markdown/JSON keep the $…$ already baked into the group’s md_text.
Implementations§
Trait Implementations§
impl Eq for InlineRun
impl StructuralPartialEq for InlineRun
Auto Trait Implementations§
impl Freeze for InlineRun
impl RefUnwindSafe for InlineRun
impl Send for InlineRun
impl Sync for InlineRun
impl Unpin for InlineRun
impl UnsafeUnpin for InlineRun
impl UnwindSafe for InlineRun
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.