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§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