pub struct CensusEntry {
pub source: PathBuf,
pub site: LinkSite,
pub target_text: String,
pub label: Option<String>,
pub resolution: Resolution,
}Expand description
One forward link as found in a document: where it is written and how it
resolves. The unit of the
census.
Fields§
§source: PathBufThe document that declares the link (workspace-relative).
site: LinkSiteWhere in source the link is written.
target_text: StringThe target exactly as written (bare — the [label](…) wrapper stripped).
label: Option<String>The display label the link carried, when written [label](target) /
[[target|label]] — None for a bare target. Kept so a caller can check
a label against the target’s current title (stale-label detection) without
re-reading the source.
resolution: ResolutionHow the target resolves.
Trait Implementations§
Source§impl Clone for CensusEntry
impl Clone for CensusEntry
Source§fn clone(&self) -> CensusEntry
fn clone(&self) -> CensusEntry
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 CensusEntry
impl Debug for CensusEntry
impl Eq for CensusEntry
Source§impl PartialEq for CensusEntry
impl PartialEq for CensusEntry
impl StructuralPartialEq for CensusEntry
Auto Trait Implementations§
impl Freeze for CensusEntry
impl RefUnwindSafe for CensusEntry
impl Send for CensusEntry
impl Sync for CensusEntry
impl Unpin for CensusEntry
impl UnsafeUnpin for CensusEntry
impl UnwindSafe for CensusEntry
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.