Struct markdown::mdast::Definition
source · pub struct Definition {
pub position: Option<Position>,
pub url: String,
pub title: Option<String>,
pub identifier: String,
pub label: Option<String>,
}
Expand description
Definition.
> | [a]: b
^^^^^^
Fields§
§position: Option<Position>
Positional info.
url: String
URL to the referenced resource.
title: Option<String>
Advisory info for the resource, such as something that would be appropriate for a tooltip.
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 Definition
impl Clone for Definition
source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
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 Definition
impl Debug for Definition
source§impl PartialEq for Definition
impl PartialEq for Definition
source§fn eq(&self, other: &Definition) -> bool
fn eq(&self, other: &Definition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Definition
impl StructuralEq for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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