pub enum IconContext {
Actions,
Devices,
FileSystems,
MimeTypes,
Unknown,
}
Expand description
§Context
The Context allows the designer to group icons on a conceptual level. It doesn’t act as a namespace in the file system, such that icons can have identical names, but allows implementations to categorize and sort by it, for example.
These are the available contexts:
- Actions. Icons representing actions which the user initiates, such as Save As.
- Devices. Icons representing real world devices, such as printers and mice. It’s not for file system nodes such as character or block devices.
- FileSystems. Icons for objects which are represented as part of the file system. This is for example, the local network, “Home”, and “Desktop” folders.
- MimeTypes. Icons representing MIME types.
Variants§
Actions
Devices
FileSystems
MimeTypes
Unknown
There is no default
for Context here, so I’ll make an Unknown
similar to Desktop Entry’s type
Trait Implementations§
Source§impl Clone for IconContext
impl Clone for IconContext
Source§fn clone(&self) -> IconContext
fn clone(&self) -> IconContext
Returns a duplicate 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 IconContext
impl Debug for IconContext
impl Copy for IconContext
Auto Trait Implementations§
impl Freeze for IconContext
impl RefUnwindSafe for IconContext
impl Send for IconContext
impl Sync for IconContext
impl Unpin for IconContext
impl UnwindSafe for IconContext
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