Enum glib::UserDirectory
source · 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 user_special_dir()
to retrieve the full path associated to the logical id.
The UserDirectory
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<UserDirectory> for UserDirectory
impl PartialEq<UserDirectory> for UserDirectory
source§fn eq(&self, other: &UserDirectory) -> bool
fn eq(&self, other: &UserDirectory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UserDirectory
impl Eq for UserDirectory
impl StructuralEq for UserDirectory
impl StructuralPartialEq for UserDirectory
Auto Trait Implementations§
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