#[non_exhaustive]pub enum Symbol {
Show 40 variants
Add,
Remove,
Delete,
Edit,
New,
Open,
Save,
Print,
Refresh,
Search,
Share,
Settings,
Info,
Star,
Bookmark,
Back,
Forward,
Up,
Down,
Home,
Sidebar,
Filter,
Sort,
More,
Play,
Pause,
Stop,
ZoomIn,
ZoomOut,
Undo,
Redo,
Copy,
Cut,
Paste,
Mail,
Folder,
Document,
Check,
Close,
Warning,
}Expand description
A standard icon, named by what it MEANS rather than by how it looks, so each backend can draw the platform’s own glyph for it — an SF Symbol on macOS, a freedesktop icon name on GTK and Qt, a Fluent glyph on Windows. This is the only way an icon looks native on every desktop at once; a bundled PNG cannot, because it is one artist’s take on all four.
The set is deliberately small: the commands that recur across toolbars. Anything
app-specific is an Icon::Image.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Add
Remove
Delete
Edit
New
Open
Save
Refresh
Search
Settings
Info
Star
Bookmark
Back
Forward
Up
Down
Home
Sidebar
Show/hide the sidebar — the leading item of most desktop toolbars.
Filter
Sort
More
An overflow affordance (macOS ellipsis, GNOME’s hamburger, Fluent More).
Play
Pause
Stop
ZoomIn
ZoomOut
Undo
Redo
Copy
Cut
Paste
Folder
Document
Check
Close
Warning
Trait Implementations§
impl Copy for Symbol
impl Eq for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin for Symbol
impl UnwindSafe for Symbol
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