Struct record_query::config::Paths
source · [−]pub struct Paths { /* private fields */ }Implementations
sourceimpl Paths
impl Paths
pub fn new() -> Result<Self>
pub fn preferred_config<P>(&self, path: P) -> PathBuf where
P: AsRef<Path>,
pub fn preferred_cache<P>(&self, path: P) -> PathBuf where
P: AsRef<Path>,
pub fn preferred_data<P>(&self, path: P) -> PathBuf where
P: AsRef<Path>,
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 RefUnwindSafe for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnwindSafe for Paths
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more