pub struct ParsedImage<'a> {
pub line: usize,
pub start_col: usize,
pub end_col: usize,
pub byte_offset: usize,
pub byte_end: usize,
pub alt_text: Cow<'a, str>,
pub url: Cow<'a, str>,
pub is_reference: bool,
pub reference_id: Option<Cow<'a, str>>,
pub link_type: LinkType,
}Expand description
Parsed image information
Fields§
§line: usizeLine number (1-indexed)
start_col: usizeStart column (0-indexed) in the line
end_col: usizeEnd column (0-indexed) in the line
byte_offset: usizeByte offset in document
byte_end: usizeEnd byte offset in document
alt_text: Cow<'a, str>Alt text
url: Cow<'a, str>Image URL or reference
is_reference: boolWhether this is a reference image ![alt][ref] vs inline
reference_id: Option<Cow<'a, str>>Reference ID for reference images
link_type: LinkTypeLink type from pulldown-cmark
Trait Implementations§
Source§impl<'a> Clone for ParsedImage<'a>
impl<'a> Clone for ParsedImage<'a>
Source§fn clone(&self) -> ParsedImage<'a>
fn clone(&self) -> ParsedImage<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ParsedImage<'a>
impl<'a> RefUnwindSafe for ParsedImage<'a>
impl<'a> Send for ParsedImage<'a>
impl<'a> Sync for ParsedImage<'a>
impl<'a> Unpin for ParsedImage<'a>
impl<'a> UnwindSafe for ParsedImage<'a>
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more