pub struct DocumentLinkCandidate {
pub source_kind: DocumentLinkSource,
pub selector: String,
pub label: Option<String>,
pub enclosing_heading: Option<String>,
pub source: MarkdownSourceSelector,
}Expand description
One explicit static repository-local reference awaiting filesystem resolution.
Fields§
§source_kind: DocumentLinkSourceParser syntax that supplied the candidate.
selector: StringBounded repository-relative selector, including any query or fragment evidence.
label: Option<String>Compact parser-visible label when the syntax supplies one.
enclosing_heading: Option<String>Stable enclosing heading selector, or the document file when absent.
source: MarkdownSourceSelectorExact source range for the complete link or code span.
Trait Implementations§
Source§impl Clone for DocumentLinkCandidate
impl Clone for DocumentLinkCandidate
Source§fn clone(&self) -> DocumentLinkCandidate
fn clone(&self) -> DocumentLinkCandidate
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 DocumentLinkCandidate
impl Debug for DocumentLinkCandidate
impl Eq for DocumentLinkCandidate
Source§impl PartialEq for DocumentLinkCandidate
impl PartialEq for DocumentLinkCandidate
Source§fn eq(&self, other: &DocumentLinkCandidate) -> bool
fn eq(&self, other: &DocumentLinkCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocumentLinkCandidate
Auto Trait Implementations§
impl Freeze for DocumentLinkCandidate
impl RefUnwindSafe for DocumentLinkCandidate
impl Send for DocumentLinkCandidate
impl Sync for DocumentLinkCandidate
impl Unpin for DocumentLinkCandidate
impl UnsafeUnpin for DocumentLinkCandidate
impl UnwindSafe for DocumentLinkCandidate
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.