pub enum Base {
Data,
Config,
State,
Cache,
Runtime,
}Variants§
Implementations§
Source§impl Base
impl Base
pub const fn env_var(self) -> &'static str
Sourcepub fn resolve_from(
self,
value: Option<&OsStr>,
home: Option<&OsStr>,
) -> Option<PathBuf>
pub fn resolve_from( self, value: Option<&OsStr>, home: Option<&OsStr>, ) -> Option<PathBuf>
Resolve from explicit values of the variable and $HOME instead of
the process environment — for callers that take them as parameters
so tests need not mutate the environment. The variable counts only
when non-empty and absolute; an empty home counts as unset.
Trait Implementations§
impl Copy for Base
impl Eq for Base
impl StructuralPartialEq for Base
Auto Trait Implementations§
impl Forget for Base
impl Freeze for Base
impl Move for Base
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnsafeUnpin for Base
impl UnwindSafe for Base
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