pub enum Wrapper {
Markdown,
Wikilink,
}Expand description
The syntactic wrapper a reference is written in — the first of the two style
axes (see docs/reference-styles.md).
Variants§
Markdown
The diaryx/markdown family: [Title](target) or a bare target, with the
exact path rendering governed by ReferenceStyle::path_style.
Wikilink
The Obsidian wikilink: [[target]] / [[target|label]].
Implementations§
Source§impl Wrapper
impl Wrapper
Sourcepub fn from_config_str(value: &str) -> Option<Self>
pub fn from_config_str(value: &str) -> Option<Self>
Parse the reference_wrapper config spelling; unknown → None.
Sourcepub fn as_config_str(self) -> &'static str
pub fn as_config_str(self) -> &'static str
The reference_wrapper config spelling.
Trait Implementations§
impl Copy for Wrapper
impl Eq for Wrapper
impl StructuralPartialEq for Wrapper
Auto Trait Implementations§
impl Freeze for Wrapper
impl RefUnwindSafe for Wrapper
impl Send for Wrapper
impl Sync for Wrapper
impl Unpin for Wrapper
impl UnsafeUnpin for Wrapper
impl UnwindSafe for Wrapper
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.