Skip to main content

IconName

Enum IconName 

Source
#[non_exhaustive]
#[repr(usize)]
pub enum IconName {
Show 66 variants Copy = 0, Check = 1, Close = 2, Plus = 3, Minus = 4, Search = 5, Edit = 6, Trash = 7, Download = 8, Upload = 9, Share = 10, Link = 11, ExternalLink = 12, Refresh = 13, Undo = 14, Redo = 15, Filter = 16, Settings = 17, Maximize = 18, Minimize = 19, Menu = 20, MoreHorizontal = 21, MoreVertical = 22, ChevronUp = 23, ChevronDown = 24, ChevronStart = 25, ChevronEnd = 26, ArrowUp = 27, ArrowDown = 28, ArrowStart = 29, ArrowEnd = 30, Home = 31, Sidebar = 32, Info = 33, Success = 34, Warning = 35, Error = 36, Help = 37, Lock = 38, Eye = 39, EyeOff = 40, Bell = 41, Star = 42, Clock = 43, Send = 44, Stop = 45, Play = 46, Pause = 47, Mic = 48, Attach = 49, ThumbsUp = 50, ThumbsDown = 51, Sparkles = 52, User = 53, Mail = 54, File = 55, Folder = 56, Image = 57, Code = 58, Terminal = 59, GitBranch = 60, Calendar = 61, Bookmark = 62, Globe = 63, Sun = 64, Moon = 65,
}
Expand description

Every icon in upstream’s built-in set (future-css/icons), in upstream’s order.

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.
§

Copy = 0

Upstream’s copy icon.

§

Check = 1

Upstream’s check icon.

§

Close = 2

Upstream’s close icon.

§

Plus = 3

Upstream’s plus icon.

§

Minus = 4

Upstream’s minus icon.

§

Search = 5

Upstream’s search icon.

§

Edit = 6

Upstream’s edit icon.

§

Trash = 7

Upstream’s trash icon.

§

Download = 8

Upstream’s download icon.

§

Upload = 9

Upstream’s upload icon.

§

Share = 10

Upstream’s share icon.

Upstream’s link icon.

Upstream’s external-link icon.

§

Refresh = 13

Upstream’s refresh icon.

§

Undo = 14

Upstream’s undo icon.

§

Redo = 15

Upstream’s redo icon.

§

Filter = 16

Upstream’s filter icon.

§

Settings = 17

Upstream’s settings icon.

§

Maximize = 18

Upstream’s maximize icon.

§

Minimize = 19

Upstream’s minimize icon.

§

Menu = 20

Upstream’s menu icon.

§

MoreHorizontal = 21

Upstream’s more-horizontal icon.

§

MoreVertical = 22

Upstream’s more-vertical icon.

§

ChevronUp = 23

Upstream’s chevron-up icon.

§

ChevronDown = 24

Upstream’s chevron-down icon.

§

ChevronStart = 25

Upstream’s chevron-start icon.

§

ChevronEnd = 26

Upstream’s chevron-end icon.

§

ArrowUp = 27

Upstream’s arrow-up icon.

§

ArrowDown = 28

Upstream’s arrow-down icon.

§

ArrowStart = 29

Upstream’s arrow-start icon.

§

ArrowEnd = 30

Upstream’s arrow-end icon.

§

Home = 31

Upstream’s home icon.

§

Sidebar = 32

Upstream’s sidebar icon.

§

Info = 33

Upstream’s info icon.

§

Success = 34

Upstream’s success icon.

§

Warning = 35

Upstream’s warning icon.

§

Error = 36

Upstream’s error icon.

§

Help = 37

Upstream’s help icon.

§

Lock = 38

Upstream’s lock icon.

§

Eye = 39

Upstream’s eye icon.

§

EyeOff = 40

Upstream’s eye-off icon.

§

Bell = 41

Upstream’s bell icon.

§

Star = 42

Upstream’s star icon.

§

Clock = 43

Upstream’s clock icon.

§

Send = 44

Upstream’s send icon.

§

Stop = 45

Upstream’s stop icon.

§

Play = 46

Upstream’s play icon.

§

Pause = 47

Upstream’s pause icon.

§

Mic = 48

Upstream’s mic icon.

§

Attach = 49

Upstream’s attach icon.

§

ThumbsUp = 50

Upstream’s thumbs-up icon.

§

ThumbsDown = 51

Upstream’s thumbs-down icon.

§

Sparkles = 52

Upstream’s sparkles icon.

§

User = 53

Upstream’s user icon.

§

Mail = 54

Upstream’s mail icon.

§

File = 55

Upstream’s file icon.

§

Folder = 56

Upstream’s folder icon.

§

Image = 57

Upstream’s image icon.

§

Code = 58

Upstream’s code icon.

§

Terminal = 59

Upstream’s terminal icon.

§

GitBranch = 60

Upstream’s git-branch icon.

§

Calendar = 61

Upstream’s calendar icon.

§

Bookmark = 62

Upstream’s bookmark icon.

§

Globe = 63

Upstream’s globe icon.

§

Sun = 64

Upstream’s sun icon.

§

Moon = 65

Upstream’s moon icon.

Implementations§

Source§

impl IconName

Source

pub const ALL: &'static [Self]

Every icon, in upstream’s order.

Source

pub fn as_str(self) -> &'static str

Upstream’s name, as used in iconMarkup and the sprite id fc-icon-NAME.

Source

pub fn path(self) -> &'static str

The SVG path data, in the ICON_VIEWBOX coordinate space.

Source

pub fn mirrored(self) -> bool

Whether the icon points along the line of text and flips in right-to-left text.

Source

pub fn from_name(name: &str) -> Option<Self>

The icon with upstream’s name, for names that arrive as data.

Trait Implementations§

Source§

impl Clone for IconName

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for IconName

Source§

impl Debug for IconName

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for IconName

Source§

impl Hash for IconName

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for IconName

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for IconName

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DependencyElement for T
where T: 'static + PartialEq + Clone,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> InitializeFromFunction<T> for T

Source§

fn initialize_from_function(f: fn() -> T) -> T

Create an instance of this type from an initialization function
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Ret> SpawnIfAsync<(), Ret> for Ret

Source§

fn spawn(self) -> Ret

Spawn the value into the dioxus runtime if it is an async block
Source§

impl<T, O> SuperFrom<T> for O
where O: From<T>,

Source§

fn super_from(input: T) -> O

Convert from a type to another type.
Source§

impl<T, O, M> SuperInto<O, M> for T
where O: SuperFrom<T, M>,

Source§

fn super_into(self) -> O

Convert from a type to another type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more