pub struct QuickAccess {
canonicalize_paths: bool,
pub heading: String,
pub paths: Vec<QuickAccessPath>,
}
Expand description
Stores a custom quick access section of the file dialog.
Fields§
§canonicalize_paths: bool
If the path’s inside the quick access section should be canonicalized.
heading: String
Name of the quick access section displayed inside the left panel.
paths: Vec<QuickAccessPath>
Path’s contained inside the quick access section.
Implementations§
Source§impl QuickAccess
impl QuickAccess
Sourcepub fn add_path(&mut self, display_name: &str, path: impl Into<PathBuf>)
pub fn add_path(&mut self, display_name: &str, path: impl Into<PathBuf>)
Adds a new path to the quick access.
Since fs::canonicalize
is used, both absolute paths and relative paths are allowed.
See FileDialog::canonicalize_paths
for more information.
See FileDialogConfig::add_quick_access
for an example.
Trait Implementations§
Source§impl Clone for QuickAccess
impl Clone for QuickAccess
Source§fn clone(&self) -> QuickAccess
fn clone(&self) -> QuickAccess
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 QuickAccess
impl RefUnwindSafe for QuickAccess
impl Send for QuickAccess
impl Sync for QuickAccess
impl Unpin for QuickAccess
impl UnwindSafe for QuickAccess
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