pub struct FileFilter<'a> {
pub desc: &'a str,
pub patterns: &'a [&'a str],
}Expand description
File filter for file dialogs.
Fields§
§desc: &'a strThe description of the file filter, e.g. "Text Files".
patterns: &'a [&'a str]The file patterns of the file filter, e.g. &["*.txt"] or &["*.jpg", "*.jpeg"].
Trait Implementations§
Source§impl<'a> Clone for FileFilter<'a>
impl<'a> Clone for FileFilter<'a>
Source§fn clone(&self) -> FileFilter<'a>
fn clone(&self) -> FileFilter<'a>
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<'a> Debug for FileFilter<'a>
impl<'a> Debug for FileFilter<'a>
impl<'a> Copy for FileFilter<'a>
Auto Trait Implementations§
impl<'a> Freeze for FileFilter<'a>
impl<'a> RefUnwindSafe for FileFilter<'a>
impl<'a> Send for FileFilter<'a>
impl<'a> Sync for FileFilter<'a>
impl<'a> Unpin for FileFilter<'a>
impl<'a> UnsafeUnpin for FileFilter<'a>
impl<'a> UnwindSafe for FileFilter<'a>
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