pub struct IconFilter {
pub icon: String,
pub filter: Arc<dyn Fn(&Path) -> bool + Send + Sync>,
}
Expand description
Sets a specific icon for directory entries.
Fields§
§icon: String
The icon that should be used.
filter: Arc<dyn Fn(&Path) -> bool + Send + Sync>
Sets a filter function that checks whether a given Path matches the criteria for this icon.
Trait Implementations§
Source§impl Clone for IconFilter
impl Clone for IconFilter
Source§fn clone(&self) -> IconFilter
fn clone(&self) -> IconFilter
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 IconFilter
impl !RefUnwindSafe for IconFilter
impl Send for IconFilter
impl Sync for IconFilter
impl Unpin for IconFilter
impl !UnwindSafe for IconFilter
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