pub struct Selector {
pub base: PathBuf,
pub names: Option<Vec<Regex>>,
pub types: Vec<EntryType>,
pub size: Option<SizeCmp>,
pub hidden: bool,
pub follow: bool,
}Expand description
Resolved file-selection predicates. Build one, then iterate walk.
Fields§
§base: PathBufTraversal root (a file yields just itself; a directory is descended).
names: Option<Vec<Regex>>Whole-name alternatives; None matches any name.
types: Vec<EntryType>Allowed entry kinds; empty matches any kind.
size: Option<SizeCmp>Size predicate (applies to regular files only).
Include dot-entries and descend dot-directories.
follow: boolFollow symlinks while traversing.
Implementations§
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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