pub struct FileFilter {
pub name: String,
pub extensions: Vec<String>,
}Expand description
File filter (e.g., “Images” -> [“png”, “jpg”]).
Extensions are matched case-insensitively and should be provided without a leading dot. The variants created from tuples will be normalized to lowercase automatically.
Fields§
§name: StringFilter display name
extensions: Vec<String>Lower-case extensions without dot (e.g., “png”)
Implementations§
Trait Implementations§
Source§impl Clone for FileFilter
impl Clone for FileFilter
Source§fn clone(&self) -> FileFilter
fn clone(&self) -> FileFilter
Returns a duplicate 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 FileFilter
impl Debug for FileFilter
Source§impl Default for FileFilter
impl Default for FileFilter
Source§fn default() -> FileFilter
fn default() -> FileFilter
Returns the “default value” for a type. Read more
Auto 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