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§fn clone(&self) -> ParsedInline
fn clone(&self) -> ParsedInline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedInline
impl Debug for ParsedInline
Source§impl Default for ParsedInline
impl Default for ParsedInline
Source§fn default() -> ParsedInline
fn default() -> ParsedInline
Returns the “default value” for a type. Read more
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