pub enum HeadingSource {
Filename,
Title,
}Expand description
Where the resolved heading text came from. New variants are added when a new origin is introduced; consumers handle them exhaustively.
Variants§
Filename
Text derived from filename (or parent folder for index notes).
Title
Text from frontmatter title:. Some("") and Some(" ") count as
Title source with empty text — visible will be false in that case.
Trait Implementations§
Source§impl Clone for HeadingSource
impl Clone for HeadingSource
Source§fn clone(&self) -> HeadingSource
fn clone(&self) -> HeadingSource
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 moreimpl Copy for HeadingSource
Source§impl Debug for HeadingSource
impl Debug for HeadingSource
Source§impl<'de> Deserialize<'de> for HeadingSource
impl<'de> Deserialize<'de> for HeadingSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HeadingSource
Source§impl PartialEq for HeadingSource
impl PartialEq for HeadingSource
Source§impl Serialize for HeadingSource
impl Serialize for HeadingSource
impl StructuralPartialEq for HeadingSource
Auto Trait Implementations§
impl Freeze for HeadingSource
impl RefUnwindSafe for HeadingSource
impl Send for HeadingSource
impl Sync for HeadingSource
impl Unpin for HeadingSource
impl UnsafeUnpin for HeadingSource
impl UnwindSafe for HeadingSource
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.