pub struct ParsedInline {
pub plain_text: String,
pub runs: Vec<FormatRun>,
pub images: Vec<ImageAnchor>,
pub footnote_refs: Vec<FootnoteRefAnchor>,
}Expand description
The three parallel things a block stores, as recovered from parsed spans.
Returned as a struct rather than a tuple because it grew a third member (images) after nine call sites already destructured a pair — and every one of those sites has to decide what to do with images, so a silent tuple-arity change would have been the wrong kind of easy.
Fields§
§plain_text: String§runs: Vec<FormatRun>§images: Vec<ImageAnchor>§footnote_refs: Vec<FootnoteRefAnchor>Trait Implementations§
Source§impl Clone for ParsedInline
impl Clone for ParsedInline
Source§impl Debug for ParsedInline
impl Debug for ParsedInline
Auto Trait Implementations§
impl Freeze for ParsedInline
impl RefUnwindSafe for ParsedInline
impl Send for ParsedInline
impl Sync for ParsedInline
impl Unpin for ParsedInline
impl UnsafeUnpin for ParsedInline
impl UnwindSafe for ParsedInline
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