pub struct MarkdownLink {
pub text: String,
pub url: String,
pub location: (PathBuf, u32, u32),
}Expand description
A standard markdown link [text](url) — an external reference, kept in a
stream separate from WikiLink so external targets are visible to the
toolkit without being conflated with in-store edges. Not graph-validated.
Fields§
§text: StringThe link text inside [ ].
url: StringThe URL or path inside ( ).
location: (PathBuf, u32, u32)Where the link appears: (file, line, col), 1-based.
Trait Implementations§
Source§impl Clone for MarkdownLink
impl Clone for MarkdownLink
Source§fn clone(&self) -> MarkdownLink
fn clone(&self) -> MarkdownLink
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 MarkdownLink
impl Debug for MarkdownLink
Source§impl PartialEq for MarkdownLink
impl PartialEq for MarkdownLink
Source§fn eq(&self, other: &MarkdownLink) -> bool
fn eq(&self, other: &MarkdownLink) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MarkdownLink
impl StructuralPartialEq for MarkdownLink
Auto Trait Implementations§
impl Freeze for MarkdownLink
impl RefUnwindSafe for MarkdownLink
impl Send for MarkdownLink
impl Sync for MarkdownLink
impl Unpin for MarkdownLink
impl UnsafeUnpin for MarkdownLink
impl UnwindSafe for MarkdownLink
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.