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 Freeze for IncludePaths
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