pub enum LinkClass {
Resolved {
url: String,
},
Mismatch {
canonical: String,
},
Broken,
External,
Anchor,
}Expand description
Classification of one link target against the deployed URL space.
Variants§
Resolved
Matches a canonical deployed URL exactly (case-sensitive).
Mismatch
A page exists, but this link won’t hit its canonical URL (case/slug).
Broken
Internal reference/absolute path with no deployed page (best-effort).
External
http(s)/protocol-relative/mailto/tel/data — not checked.
Anchor
Same-page #fragment.
Trait Implementations§
impl Eq for LinkClass
impl StructuralPartialEq for LinkClass
Auto Trait Implementations§
impl Freeze for LinkClass
impl RefUnwindSafe for LinkClass
impl Send for LinkClass
impl Sync for LinkClass
impl Unpin for LinkClass
impl UnsafeUnpin for LinkClass
impl UnwindSafe for LinkClass
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.