Struct predicates::path::FileTypePredicate
[−]
[src]
pub struct FileTypePredicate { /* fields omitted */ }
Predicate that checks the std::fs::FileType
.
This is created by the predicate::path::is_file
, predicate::path::is_dir
, and predicate::path::is_symlink
.
Methods
impl FileTypePredicate
[src]
pub fn follow_links(self, yes: bool) -> Self
[src]
Follow symbolic links.
When yes is true, symbolic links are followed as if they were normal directories and files.
Default: disabled.
pub fn from_path(path: &Path) -> Result<FileTypePredicate>
[src]
Allow to create an FileTypePredicate
from a path
Trait Implementations
impl Clone for FileTypePredicate
[src]
fn clone(&self) -> FileTypePredicate
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FileTypePredicate
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Predicate<Path> for FileTypePredicate
[src]
fn eval(&self, path: &Path) -> bool
[src]
Execute this Predicate
against variable
, returning the resulting boolean. Read more