pub enum UserDirectory {
Desktop,
Documents,
Downloads,
Music,
Pictures,
PublicShare,
Templates,
Videos,
}
Expand description
These are logical ids for special directories which are defined depending on the platform used. You should use g_get_user_special_dir() to retrieve the full path associated to the logical id.
The #GUserDirectory enumeration can be extended at later date. Not every platform has a directory for every logical id in this enumeration.
Variants§
Trait Implementations§
Source§impl Clone for UserDirectory
impl Clone for UserDirectory
Source§fn clone(&self) -> UserDirectory
fn clone(&self) -> UserDirectory
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 moreSource§impl Debug for UserDirectory
impl Debug for UserDirectory
Source§impl Hash for UserDirectory
impl Hash for UserDirectory
Source§impl PartialEq for UserDirectory
impl PartialEq for UserDirectory
impl Copy for UserDirectory
impl Eq for UserDirectory
impl StructuralPartialEq for UserDirectory
Auto Trait Implementations§
impl Freeze for UserDirectory
impl RefUnwindSafe for UserDirectory
impl Send for UserDirectory
impl Sync for UserDirectory
impl Unpin for UserDirectory
impl UnwindSafe for UserDirectory
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