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.

[src]

Allow to create an FileTypePredicate from a path

Trait Implementations

impl Clone for FileTypePredicate
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FileTypePredicate
[src]

[src]

Formats the value using the given formatter. Read more

impl Predicate<Path> for FileTypePredicate
[src]

[src]

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

impl Display for FileTypePredicate
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations