Enum glib::UserDirectory
source · pub enum UserDirectory {
Desktop,
Documents,
Downloads,
Music,
Pictures,
PublicShare,
Templates,
Videos,
// some variants omitted
}
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 ==
.