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]

Follow symbolic links.

When yes is true, symbolic links are followed as if they were normal directories and files.

Default: disabled.

Allow to create an FileTypePredicate from a path

Trait Implementations

impl Debug for FileTypePredicate
[src]

Formats the value using the given formatter. Read more

impl Clone for FileTypePredicate
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for FileTypePredicate
[src]

impl PartialEq for FileTypePredicate
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for FileTypePredicate
[src]

impl Predicate<Path> for FileTypePredicate
[src]

Execute this Predicate against variable, returning the resulting boolean. Read more

Find a case that proves this predicate as expected when run against variable.

impl PredicateReflection for FileTypePredicate
[src]

Important traits for Box<R>

Parameters of the current Predicate.

Important traits for Box<R>

Nested Predicates of the current Predicate.

impl Display for FileTypePredicate
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations