Struct utils_box::paths::IncludePaths
source · pub struct IncludePaths { /* private fields */ }
Implementations§
source§impl IncludePaths
impl IncludePaths
sourcepub fn seek(&self, file: &str) -> Result<PathBuf>
pub fn seek(&self, file: &str) -> Result<PathBuf>
Seek File in include directories first If not found, fall-back in unknown path search (if applicable)
sourcepub fn seek_in_known(&self, file: &str) -> Result<PathBuf>
pub fn seek_in_known(&self, file: &str) -> Result<PathBuf>
Seek only in included known paths (ingoring included unknown paths)
sourcepub fn seek_in_unknown(&self, file: &str) -> Result<PathBuf>
pub fn seek_in_unknown(&self, file: &str) -> Result<PathBuf>
Seek only in included repositories (ingoring included directories)
Tries to locate the repositories in the current working directory and then going backwards until reaching $HOME
or %HOME%
sourcepub fn search_glob(&self, pattern: &str) -> Vec<PathBuf>
pub fn search_glob(&self, pattern: &str) -> Vec<PathBuf>
Search in directories in known paths first for files matching the glob pattern requested If not found, fall-back in unknown paths search (if applicable)
sourcepub fn search_glob_known(&self, pattern: &str) -> Vec<PathBuf>
pub fn search_glob_known(&self, pattern: &str) -> Vec<PathBuf>
Search in included directories for files matching the glob pattern requested
sourcepub fn search_glob_unknown(&self, pattern: &str) -> Vec<PathBuf>
pub fn search_glob_unknown(&self, pattern: &str) -> Vec<PathBuf>
Search in included repsotories for files matching the glob pattern requested
Trait Implementations§
source§impl Clone for IncludePaths
impl Clone for IncludePaths
source§fn clone(&self) -> IncludePaths
fn clone(&self) -> IncludePaths
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for IncludePaths
impl Send for IncludePaths
impl Sync for IncludePaths
impl Unpin for IncludePaths
impl UnwindSafe for IncludePaths
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