pub struct DefinitionEntry {
pub label: String,
pub path: RepoPath,
pub slug: Option<String>,
}Expand description
A DefinitionEntry is one line of a definition block.
Fields§
§label: Stringlabel holds the label with its sokf: prefix.
path: RepoPathpath holds the path of the target.
slug: Option<String>slug holds the #slug of the target when the fragment identifies a
heading or a key that a heading captures. Otherwise it is None.
Trait Implementations§
Source§impl Clone for DefinitionEntry
impl Clone for DefinitionEntry
Source§impl Debug for DefinitionEntry
impl Debug for DefinitionEntry
impl Eq for DefinitionEntry
Source§impl Ord for DefinitionEntry
impl Ord for DefinitionEntry
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DefinitionEntry
impl PartialEq for DefinitionEntry
Source§impl PartialOrd for DefinitionEntry
impl PartialOrd for DefinitionEntry
impl StructuralPartialEq for DefinitionEntry
Auto Trait Implementations§
impl Forget for DefinitionEntry
impl Freeze for DefinitionEntry
impl Move for DefinitionEntry
impl RefUnwindSafe for DefinitionEntry
impl Send for DefinitionEntry
impl Sync for DefinitionEntry
impl Unpin for DefinitionEntry
impl UnsafeUnpin for DefinitionEntry
impl UnwindSafe for DefinitionEntry
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.