pub struct FileTreeFilter {
pub show_hidden: bool,
pub builtin_excludes: bool,
pub extra_excludes: Vec<String>,
pub include: Vec<String>,
}Expand description
Filter options controlling which entries appear in FileTreeView.
§Defaults
show_hidden = false— hide dotfiles / dot-directories.builtin_excludes = true— hide known build-output directories.extra_excludes = []— no additional exclusions.include = []— include everything (no inclusion filter).
The defaults are intentionally conservative: they hide the noise without requiring any configuration for the common case.
Fields§
When false, entries whose name starts with . are excluded.
builtin_excludes: boolWhen true, entries whose name appears in BUILTIN_EXCLUDES
are excluded.
extra_excludes: Vec<String>Additional entry names to exclude (exact-match on the entry’s
file_name(), not a glob).
include: Vec<String>If non-empty, only files whose name matches at least one entry (simple suffix match) are included. Directories are always kept so the user can drill into them.
Trait Implementations§
Source§impl Clone for FileTreeFilter
impl Clone for FileTreeFilter
Source§fn clone(&self) -> FileTreeFilter
fn clone(&self) -> FileTreeFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileTreeFilter
impl Debug for FileTreeFilter
Auto Trait Implementations§
impl Freeze for FileTreeFilter
impl RefUnwindSafe for FileTreeFilter
impl Send for FileTreeFilter
impl Sync for FileTreeFilter
impl Unpin for FileTreeFilter
impl UnsafeUnpin for FileTreeFilter
impl UnwindSafe for FileTreeFilter
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