pub struct Definition {
pub label: String,
pub destination: String,
pub title: Option<String>,
pub start: usize,
pub end: usize,
}Expand description
A link reference definition (section 4.7) as the block phase read it from the front of a paragraph.
Fields§
§label: StringThe label’s raw source text, between its brackets.
destination: StringThe destination, already entity-decoded and backslash-unescaped.
title: Option<String>The title, likewise.
start: usizeThe source lines the definition spans, 1-based, both included.
end: usizeTrait Implementations§
Source§impl Clone for Definition
impl Clone for Definition
Source§impl Debug for Definition
impl Debug for Definition
impl Eq for Definition
Source§impl PartialEq for Definition
impl PartialEq for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Forget for Definition
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.