#[repr(u32)]pub enum DialogKind {
File = 0,
Files = 1,
Folder = 2,
SavePath = 3,
}Expand description
What a dialog asks the user to pick. Compiled code passes it to the runtime as a u32,
which every platform’s C calling convention passes without widening.
Variants§
File = 0
One existing file.
Files = 1
Any number of existing files, at least one.
Folder = 2
One existing folder.
SavePath = 3
Where to save a new file, which may already exist.
Implementations§
Source§impl DialogKind
impl DialogKind
Sourcepub fn picks_many(self) -> bool
pub fn picks_many(self) -> bool
Whether the answer is a list of paths rather than one.
Trait Implementations§
Source§impl Clone for DialogKind
impl Clone for DialogKind
Source§fn clone(&self) -> DialogKind
fn clone(&self) -> DialogKind
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 moreimpl Copy for DialogKind
Source§impl Debug for DialogKind
impl Debug for DialogKind
impl Eq for DialogKind
Source§impl PartialEq for DialogKind
impl PartialEq for DialogKind
impl StructuralPartialEq for DialogKind
Auto Trait Implementations§
impl Freeze for DialogKind
impl RefUnwindSafe for DialogKind
impl Send for DialogKind
impl Sync for DialogKind
impl Unpin for DialogKind
impl UnsafeUnpin for DialogKind
impl UnwindSafe for DialogKind
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