pub struct ConfigPath {
pub path: PathBuf,
pub explicit: bool,
}Expand description
Where linesmith found its config path and how. explicit = true
means the user named a path directly (--config or
LINESMITH_CONFIG); the run-time diagnostics use this to decide
whether a missing file is worth warning about (explicit paths
warn, implicit XDG fallbacks stay silent for first-run users).
Fields§
§path: PathBuf§explicit: boolTrait Implementations§
Source§impl Clone for ConfigPath
impl Clone for ConfigPath
Source§fn clone(&self) -> ConfigPath
fn clone(&self) -> ConfigPath
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 moreSource§impl Debug for ConfigPath
impl Debug for ConfigPath
Source§impl PartialEq for ConfigPath
impl PartialEq for ConfigPath
Source§fn eq(&self, other: &ConfigPath) -> bool
fn eq(&self, other: &ConfigPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConfigPath
impl StructuralPartialEq for ConfigPath
Auto Trait Implementations§
impl Freeze for ConfigPath
impl RefUnwindSafe for ConfigPath
impl Send for ConfigPath
impl Sync for ConfigPath
impl Unpin for ConfigPath
impl UnsafeUnpin for ConfigPath
impl UnwindSafe for ConfigPath
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.