pub enum LinkSite {
Relation(String),
Body(Range<usize>),
}Expand description
Where in a document a forward link is written — a frontmatter relation
field or a body wikilink. Carried by every link-resolution finding
(prov’s Finding, derived in validate — see
StructuralFact) and every CensusEntry so a report can point at the
exact site.
Variants§
Relation(String)
A frontmatter relation field, by name (e.g. contents, links).
Body(Range<usize>)
A [[…]] wikilink in the body, at this byte span.
Trait Implementations§
impl Eq for LinkSite
impl StructuralPartialEq for LinkSite
Auto Trait Implementations§
impl Freeze for LinkSite
impl RefUnwindSafe for LinkSite
impl Send for LinkSite
impl Sync for LinkSite
impl Unpin for LinkSite
impl UnsafeUnpin for LinkSite
impl UnwindSafe for LinkSite
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.