pub enum PathStrategy {
System,
Xdg,
CustomBase(PathBuf),
}Expand description
Path resolution strategy.
Determines how configuration and data directories are resolved.
Variants§
System
Use OS-standard directories (default).
- Linux:
~/.config/(XDG_CONFIG_HOME) - macOS:
~/Library/Application Support/ - Windows:
%APPDATA%
Xdg
Force XDG Base Directory specification on all platforms.
Uses ~/.config/ for config and ~/.local/share/ for data
on all platforms (Linux, macOS, Windows).
This is useful for applications that want consistent paths across platforms (e.g., VSCode, Neovim, orcs).
CustomBase(PathBuf)
Use a custom base directory.
All paths will be resolved relative to this base directory.
Trait Implementations§
Source§impl Clone for PathStrategy
impl Clone for PathStrategy
Source§fn clone(&self) -> PathStrategy
fn clone(&self) -> PathStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathStrategy
impl Debug for PathStrategy
Source§impl Default for PathStrategy
impl Default for PathStrategy
Source§fn default() -> PathStrategy
fn default() -> PathStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for PathStrategy
impl PartialEq for PathStrategy
impl Eq for PathStrategy
impl StructuralPartialEq for PathStrategy
Auto Trait Implementations§
impl Freeze for PathStrategy
impl RefUnwindSafe for PathStrategy
impl Send for PathStrategy
impl Sync for PathStrategy
impl Unpin for PathStrategy
impl UnwindSafe for PathStrategy
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.