pub enum PathStyle {
Root,
Relative,
}Expand description
The path-resolution a reference uses for a path target — the config-facing
references.path_style axis, orthogonal to Notation. Applies to path
targets only (id/alias ignore it).
Two resolutions, and deliberately not three. A canonical style once emitted
a workspace-relative path with no leading slash (path/file.md), which
resolve reads as directory-relative — so a canonical link resolved to
what it named only from a document at the workspace root, and silently
misresolved everywhere else. The ambiguity of a bare path is settled by
committing to one meaning rather than by tagging it: bare is
directory-relative, and a workspace-relative reference is spelled
Root, with the slash that says so. prov convert <root> link_format markdown_root -r restyles a workspace that used the old value.
Variants§
Implementations§
Source§impl PathStyle
impl PathStyle
Sourcepub fn from_config_str(value: &str) -> Option<Self>
pub fn from_config_str(value: &str) -> Option<Self>
Parse the references.path_style config spelling; unknown → None.
Sourcepub fn as_config_str(self) -> &'static str
pub fn as_config_str(self) -> &'static str
The references.path_style config spelling.
Trait Implementations§
impl Copy for PathStyle
impl Eq for PathStyle
impl StructuralPartialEq for PathStyle
Auto Trait Implementations§
impl Freeze for PathStyle
impl RefUnwindSafe for PathStyle
impl Send for PathStyle
impl Sync for PathStyle
impl Unpin for PathStyle
impl UnsafeUnpin for PathStyle
impl UnwindSafe for PathStyle
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
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
key and return true if they are equal.