Struct predicates::path::FileTypePredicate
source · pub struct FileTypePredicate { /* private fields */ }
Expand description
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§
source§impl FileTypePredicate
impl FileTypePredicate
sourcepub fn follow_links(self, yes: bool) -> Self
pub fn follow_links(self, yes: bool) -> Self
Follow symbolic links.
When yes is true, symbolic links are followed as if they were normal directories and files.
Default: disabled.
sourcepub fn from_path(path: &Path) -> Result<FileTypePredicate>
pub fn from_path(path: &Path) -> Result<FileTypePredicate>
Allow to create an FileTypePredicate
from a path
Trait Implementations§
source§impl Clone for FileTypePredicate
impl Clone for FileTypePredicate
source§fn clone(&self) -> FileTypePredicate
fn clone(&self) -> FileTypePredicate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FileTypePredicate
impl Debug for FileTypePredicate
source§impl Display for FileTypePredicate
impl Display for FileTypePredicate
source§impl PartialEq for FileTypePredicate
impl PartialEq for FileTypePredicate
source§impl Predicate<Path> for FileTypePredicate
impl Predicate<Path> for FileTypePredicate
impl Copy for FileTypePredicate
impl Eq for FileTypePredicate
impl StructuralPartialEq for FileTypePredicate
Auto Trait Implementations§
impl Freeze for FileTypePredicate
impl RefUnwindSafe for FileTypePredicate
impl Send for FileTypePredicate
impl Sync for FileTypePredicate
impl Unpin for FileTypePredicate
impl UnwindSafe for FileTypePredicate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<P, Item> PredicateBooleanExt<Item> for P
impl<P, Item> PredicateBooleanExt<Item> for P
source§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>
Compute the logical AND of two
Predicate
results, returning the result. Read moresource§fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>
Compute the logical OR of two
Predicate
results, returning the result. Read more