pub struct ImageReference {
pub meta: NodeMeta,
pub identifier: String,
pub label: String,
pub kind: ReferenceKind,
pub alt: Vec<Inline>,
}Expand description
A reference image: ![alt][label], ![alt][], or ![alt].
Fields§
§meta: NodeMetaNode metadata (source span).
identifier: StringThe normalized lookup key matching a Definition.
label: StringThe label as written in the source.
kind: ReferenceKindWhether the reference is full, collapsed, or shortcut form.
alt: Vec<Inline>The image’s alt-text inline content.
Trait Implementations§
Source§impl Clone for ImageReference
impl Clone for ImageReference
Source§fn clone(&self) -> ImageReference
fn clone(&self) -> ImageReference
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 ImageReference
impl Debug for ImageReference
impl Eq for ImageReference
Source§impl From<ImageReference> for Inline
impl From<ImageReference> for Inline
Source§fn from(node: ImageReference) -> Self
fn from(node: ImageReference) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImageReference
impl PartialEq for ImageReference
Source§fn eq(&self, other: &ImageReference) -> bool
fn eq(&self, other: &ImageReference) -> bool
Tests for
self and other values to be equal, and is used by ==.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