Struct include_dir::Dir [−][src]
pub struct Dir<'a> { /* fields omitted */ }
A directory entry.
Methods
impl<'a> Dir<'a>
[src]
impl<'a> Dir<'a>
pub fn path(&self) -> &'a Path
[src]
pub fn path(&self) -> &'a Path
pub fn files(&self) -> &'a [File<'a>]
[src]
pub fn files(&self) -> &'a [File<'a>]
pub fn dirs(&self) -> &'a [Dir<'a>]
[src]
pub fn dirs(&self) -> &'a [Dir<'a>]
pub fn contains<S: AsRef<Path>>(&self, path: S) -> bool
[src]
pub fn contains<S: AsRef<Path>>(&self, path: S) -> bool
pub fn get_dir<S: AsRef<Path>>(&self, path: S) -> Option<Dir>
[src]
pub fn get_dir<S: AsRef<Path>>(&self, path: S) -> Option<Dir>
pub fn get_file<S: AsRef<Path>>(&self, path: S) -> Option<File>
[src]
pub fn get_file<S: AsRef<Path>>(&self, path: S) -> Option<File>
pub fn find(
&self,
glob: &str
) -> Result<impl Iterator<Item = DirEntry<'a>>, PatternError>
[src]
pub fn find(
&self,
glob: &str
) -> Result<impl Iterator<Item = DirEntry<'a>>, PatternError>
Trait Implementations
impl<'a> Debug for Dir<'a>
[src]
impl<'a> Debug for Dir<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Copy for Dir<'a>
[src]
impl<'a> Copy for Dir<'a>
impl<'a> Clone for Dir<'a>
[src]
impl<'a> Clone for Dir<'a>
fn clone(&self) -> Dir<'a>
[src]
fn clone(&self) -> Dir<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> PartialEq for Dir<'a>
[src]
impl<'a> PartialEq for Dir<'a>