pub struct FileFilter {
pub id: Id,
pub name: String,
pub filter: Arc<dyn Fn(&Path) -> bool + Send + Sync>,
}
Expand description
Defines a specific file filter that the user can select from a dropdown.
Fields§
§id: Id
The ID of the file filter, used internally for identification.
name: String
The display name of the file filter
filter: Arc<dyn Fn(&Path) -> bool + Send + Sync>
Sets a filter function that checks whether a given Path matches the criteria for this file.
Trait Implementations§
Source§impl Clone for FileFilter
impl Clone for FileFilter
Source§fn clone(&self) -> FileFilter
fn clone(&self) -> FileFilter
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 moreAuto Trait Implementations§
impl Freeze for FileFilter
impl !RefUnwindSafe for FileFilter
impl Send for FileFilter
impl Sync for FileFilter
impl Unpin for FileFilter
impl !UnwindSafe for FileFilter
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