Struct markdown::mdast::FootnoteReference
source · pub struct FootnoteReference {
pub position: Option<Position>,
pub identifier: String,
pub label: Option<String>,
}
Expand description
GFM: footnote reference.
> | [^a]
^^^^
Fields§
§position: Option<Position>
Positional info.
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 FootnoteReference
impl Clone for FootnoteReference
source§fn clone(&self) -> FootnoteReference
fn clone(&self) -> FootnoteReference
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 FootnoteReference
impl Debug for FootnoteReference
source§impl PartialEq for FootnoteReference
impl PartialEq for FootnoteReference
source§fn eq(&self, other: &FootnoteReference) -> bool
fn eq(&self, other: &FootnoteReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FootnoteReference
impl StructuralEq for FootnoteReference
impl StructuralPartialEq for FootnoteReference
Auto Trait Implementations§
impl RefUnwindSafe for FootnoteReference
impl Send for FootnoteReference
impl Sync for FootnoteReference
impl Unpin for FootnoteReference
impl UnwindSafe for FootnoteReference
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