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.

Implementations

impl FileTypePredicate[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]

impl Copy for FileTypePredicate[src]

impl Debug for FileTypePredicate[src]

impl Display for FileTypePredicate[src]

impl Eq for FileTypePredicate[src]

impl PartialEq<FileTypePredicate> for FileTypePredicate[src]

impl Predicate<Path> for FileTypePredicate[src]

impl PredicateReflection for FileTypePredicate[src]

impl StructuralEq for FileTypePredicate[src]

impl StructuralPartialEq for FileTypePredicate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<P, Item> PredicateBooleanExt<Item> for P where
    Item: ?Sized,
    P: Predicate<Item>, 
[src]

impl<P, Item> PredicateNameExt<Item> for P where
    Item: ?Sized,
    P: Predicate<Item>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.