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: StringEquivalent content for environments that cannot represent the node as intended.
reference_kind: ReferenceKindExplicitness of a reference.
identifier: StringValue 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§impl Debug for ImageReference
impl Debug for ImageReference
impl Eq for ImageReference
Source§impl PartialEq for ImageReference
impl PartialEq for ImageReference
impl StructuralPartialEq for ImageReference
Auto Trait Implementations§
impl Freeze for ImageReference
impl RefUnwindSafe for ImageReference
impl Send for ImageReference
impl Sync for ImageReference
impl Unpin for ImageReference
impl UnsafeUnpin 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