pub struct Paths { /* private fields */ }Implementations§
Source§impl Paths
impl Paths
pub fn new() -> Result<Self>
pub fn preferred_config<P>(&self, path: P) -> PathBuf
pub fn preferred_cache<P>(&self, path: P) -> PathBuf
pub fn preferred_data<P>(&self, path: P) -> PathBuf
pub fn find_config(&self, pattern: &str) -> Result<Vec<PathBuf>>
pub fn find_data(&self, pattern: &str) -> Result<Vec<PathBuf>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paths
impl RefUnwindSafe for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnwindSafe for Paths
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