pub enum LinkStyle {
MarkdownRoot,
MarkdownRelative,
PlainRoot,
PlainRelative,
}Expand description
The write style for links a workspace authors — prov’s analogue of
diaryx’s LinkFormat, and read from the same place: the link_format key in
the root document’s frontmatter (a fact declared in the workspace, not an
app-private config). Every link prov writes (autofix today; create/rename
in time) uses this, so a repair never introduces a foreign style.
Variants§
MarkdownRoot
[Title](/path/file.md) — workspace-absolute Markdown link. diaryx’s
default, and the most portable/self-documenting.
MarkdownRelative
[Title](../path/file.md) — relative Markdown link.
PlainRoot
/path/file.md — bare workspace-absolute path.
PlainRelative
../path/file.md — bare relative path.
Implementations§
Trait Implementations§
impl Copy for LinkStyle
impl Eq for LinkStyle
impl StructuralPartialEq for LinkStyle
Auto Trait Implementations§
impl Freeze for LinkStyle
impl RefUnwindSafe for LinkStyle
impl Send for LinkStyle
impl Sync for LinkStyle
impl Unpin for LinkStyle
impl UnsafeUnpin for LinkStyle
impl UnwindSafe for LinkStyle
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.