A library for parsing and deserialising paths with special rules.
The format is similar to `["$proj(com.xy.z): data ? cfg", "$const: os", "$val: rand-16"]`
usecore::ops::{Deref, DerefMut};usestd::path::{Path, PathBuf};usecrate::EnvPath;/// This implementation allows for mutable access to the underlying path value
/// of `EnvPath`.
impl<'r> DerefMut forEnvPath<'r>{fnderef_mut(&mutself)->&mutSelf::Target{match&mutself.path {Some(p)=> p,
n =>{*n =Some(PathBuf::new());
n.as_mut().expect("Failed to deref mut EnvPath.")}}}}/// This implementation provides a read-only reference to the underlying path
/// value of `EnvPath`.
impl<'r> Deref forEnvPath<'r>{typeTarget= Path;fnderef(&self)->&Self::Target{matchself.path {Some(ref p)=> p.as_path(),_=>Path::new(""),}}}