pub struct FrontMatterLink {
pub line: usize,
pub range: Range<usize>,
pub field: Option<String>,
}Expand description
A frontmatter value that reads as a link destination.
Fields§
§line: usize1-indexed line the destination sits on.
range: Range<usize>Byte range of the destination within its own line, with quotes and other wrapping punctuation excluded.
field: Option<String>The lowercased top-level key owning the value, or None where no owner
is determinable. See field_map for how attribution is biased.
Implementations§
Source§impl FrontMatterLink
impl FrontMatterLink
Sourcepub fn field_is_in(&self, fields: &HashSet<String>) -> bool
pub fn field_is_in(&self, fields: &HashSet<String>) -> bool
Whether this link’s owning field is in a set of lowercased field names.
A link with no determinable owner belongs to no field, so it is never excluded by name.
Trait Implementations§
Source§impl Clone for FrontMatterLink
impl Clone for FrontMatterLink
Source§fn clone(&self) -> FrontMatterLink
fn clone(&self) -> FrontMatterLink
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 FrontMatterLink
impl Debug for FrontMatterLink
impl Eq for FrontMatterLink
Source§impl PartialEq for FrontMatterLink
impl PartialEq for FrontMatterLink
impl StructuralPartialEq for FrontMatterLink
Auto Trait Implementations§
impl Freeze for FrontMatterLink
impl RefUnwindSafe for FrontMatterLink
impl Send for FrontMatterLink
impl Sync for FrontMatterLink
impl Unpin for FrontMatterLink
impl UnsafeUnpin for FrontMatterLink
impl UnwindSafe for FrontMatterLink
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.