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