Struct markdown::mdast::ImageReference
source · pub struct ImageReference {
pub position: Option<Position>,
pub alt: String,
pub reference_kind: ReferenceKind,
pub identifier: String,
pub label: Option<String>,
}
Expand description
Image reference.
> | ![a]
^^^^
Fields§
§position: Option<Position>
Positional info.
alt: String
Equivalent content for environments that cannot represent the node as intended.
reference_kind: ReferenceKind
Explicitness of a reference.
identifier: String
Value that can match another node.
identifier
is a source value: character escapes and character references
are not parsed.
Its value must be normalized.
label: Option<String>
label
is a string value: it works just like title
on a link or a
lang
on code: character escapes and character references are parsed.
To normalize a value, collapse markdown whitespace ([\t\n\r ]+
) to a
space, trim the optional initial and/or final space, and perform
case-folding.
Trait Implementations§
source§impl Clone for ImageReference
impl Clone for ImageReference
source§fn clone(&self) -> ImageReference
fn clone(&self) -> ImageReference
Returns a copy 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 moresource§impl Debug for ImageReference
impl Debug for ImageReference
source§impl PartialEq for ImageReference
impl PartialEq for ImageReference
source§fn eq(&self, other: &ImageReference) -> bool
fn eq(&self, other: &ImageReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImageReference
impl StructuralEq for ImageReference
impl StructuralPartialEq for ImageReference
Auto Trait Implementations§
impl RefUnwindSafe for ImageReference
impl Send for ImageReference
impl Sync for ImageReference
impl Unpin for ImageReference
impl UnwindSafe for ImageReference
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