Skip to main content

IconName

Enum IconName 

Source
#[non_exhaustive]
pub enum IconName {
Show 245 variants Activity, AlarmClock, Archive, ArrowDown, ArrowDownLeft, ArrowDownRight, ArrowDownToLine, ArrowLeft, ArrowLeftRight, ArrowRight, ArrowUp, ArrowUpDown, ArrowUpLeft, ArrowUpRight, ArrowUpToLine, AtSign, Ban, Battery, Bell, BellOff, Bold, Book, BookOpen, Bookmark, Bot, Box, Briefcase, Bug, Building, Calendar, CalendarDays, Camera, ChartBar, ChartColumn, ChartLine, ChartPie, Check, CheckCheck, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsDown, ChevronsLeft, ChevronsRight, ChevronsUp, ChevronsUpDown, Circle, CircleAlert, CircleCheck, CircleDot, CircleHelp, CircleMinus, CirclePlus, CircleUser, CircleX, Clipboard, ClipboardCheck, ClipboardCopy, Clock, Cloud, CloudDownload, CloudUpload, Code, CodeXml, Columns2, Command, Compass, Contrast, Copy, CornerDownLeft, Cpu, CreditCard, Crop, Database, DollarSign, Download, Droplet, Ellipsis, EllipsisVertical, Expand, ExternalLink, Eye, EyeOff, File, FileCode, FilePlus, FileText, Files, Film, Flag, Folder, FolderOpen, FolderPlus, Funnel, Gift, GitBranch, GitCommitHorizontal, GitMerge, GitPullRequest, Globe, GraduationCap, Grid2x2, GripHorizontal, GripVertical, HardDrive, Hash, Headphones, Heart, History, House, Image, Inbox, Info, Italic, Key, Keyboard, Languages, Laptop, Layers, LayoutDashboard, LayoutGrid, LayoutList, Lightbulb, Link, Link2, List, ListChecks, ListFilter, ListOrdered, Loader, LoaderCircle, Lock, LockOpen, LogIn, LogOut, Mail, Map, MapPin, Maximize, Maximize2, Menu, MessageCircle, MessageSquare, Mic, MicOff, Minimize, Minimize2, Minus, Monitor, Moon, MousePointer, Move, OctagonAlert, Package, Palette, PanelLeft, PanelRight, Paperclip, Pause, Pencil, Phone, Pin, Pipette, Play, Plus, Power, Printer, Puzzle, Quote, Redo2, RefreshCw, Repeat, Rocket, RotateCcw, RotateCw, Rows2, Rss, Save, Scissors, Search, Send, Server, Settings, Settings2, Share, Share2, Shield, ShieldCheck, ShoppingBag, ShoppingCart, Shrink, Shuffle, SkipBack, SkipForward, SlidersHorizontal, Smartphone, Smile, Sparkles, Square, SquareCheck, SquarePen, Star, Strikethrough, Sun, SunMoon, Table, Tablet, Tag, Tags, Terminal, TextAlignCenter, TextAlignEnd, TextAlignStart, ThumbsDown, ThumbsUp, Timer, Trash, Trash2, TrendingDown, TrendingUp, TriangleAlert, Truck, Type, Underline, Undo2, Unlink, Upload, User, UserCheck, UserMinus, UserPlus, Users, Video, Volume2, VolumeX, Wallet, WandSparkles, Wifi, WifiOff, Wrench, X, Zap, ZoomIn, ZoomOut,
}
Expand description

A Lucide icon embedded in this crate (HeroGPUI extension).

Each variant is the Lucide icon of the same name in PascalCase (circle-check is IconName::CircleCheck). The set is curated, not all of Lucide, and grows in minor releases, which is why the enum is #[non_exhaustive].

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

Activity

Lucide activity.

§

AlarmClock

Lucide alarm-clock.

§

Archive

Lucide archive.

§

ArrowDown

Lucide arrow-down.

§

ArrowDownLeft

Lucide arrow-down-left.

§

ArrowDownRight

Lucide arrow-down-right.

§

ArrowDownToLine

Lucide arrow-down-to-line.

§

ArrowLeft

Lucide arrow-left.

§

ArrowLeftRight

Lucide arrow-left-right.

§

ArrowRight

Lucide arrow-right.

§

ArrowUp

Lucide arrow-up.

§

ArrowUpDown

Lucide arrow-up-down.

§

ArrowUpLeft

Lucide arrow-up-left.

§

ArrowUpRight

Lucide arrow-up-right.

§

ArrowUpToLine

Lucide arrow-up-to-line.

§

AtSign

Lucide at-sign.

§

Ban

Lucide ban.

§

Battery

Lucide battery.

§

Bell

Lucide bell.

§

BellOff

Lucide bell-off.

§

Bold

Lucide bold.

§

Book

Lucide book.

§

BookOpen

Lucide book-open.

§

Bookmark

Lucide bookmark.

§

Bot

Lucide bot.

§

Box

Lucide box.

§

Briefcase

Lucide briefcase.

§

Bug

Lucide bug.

§

Building

Lucide building.

§

Calendar

Lucide calendar.

§

CalendarDays

Lucide calendar-days.

§

Camera

Lucide camera.

§

ChartBar

Lucide chart-bar.

§

ChartColumn

Lucide chart-column.

§

ChartLine

Lucide chart-line.

§

ChartPie

Lucide chart-pie.

§

Check

Lucide check.

§

CheckCheck

Lucide check-check.

§

ChevronDown

Lucide chevron-down.

§

ChevronLeft

Lucide chevron-left.

§

ChevronRight

Lucide chevron-right.

§

ChevronUp

Lucide chevron-up.

§

ChevronsDown

Lucide chevrons-down.

§

ChevronsLeft

Lucide chevrons-left.

§

ChevronsRight

Lucide chevrons-right.

§

ChevronsUp

Lucide chevrons-up.

§

ChevronsUpDown

Lucide chevrons-up-down.

§

Circle

Lucide circle.

§

CircleAlert

Lucide circle-alert.

§

CircleCheck

Lucide circle-check.

§

CircleDot

Lucide circle-dot.

§

CircleHelp

Lucide circle-help.

§

CircleMinus

Lucide circle-minus.

§

CirclePlus

Lucide circle-plus.

§

CircleUser

Lucide circle-user.

§

CircleX

Lucide circle-x.

§

Clipboard

Lucide clipboard.

§

ClipboardCheck

Lucide clipboard-check.

§

ClipboardCopy

Lucide clipboard-copy.

§

Clock

Lucide clock.

§

Cloud

Lucide cloud.

§

CloudDownload

Lucide cloud-download.

§

CloudUpload

Lucide cloud-upload.

§

Code

Lucide code.

§

CodeXml

Lucide code-xml.

§

Columns2

Lucide columns-2.

§

Command

Lucide command.

§

Compass

Lucide compass.

§

Contrast

Lucide contrast.

§

Copy

Lucide copy.

§

CornerDownLeft

Lucide corner-down-left.

§

Cpu

Lucide cpu.

§

CreditCard

Lucide credit-card.

§

Crop

Lucide crop.

§

Database

Lucide database.

§

DollarSign

Lucide dollar-sign.

§

Download

Lucide download.

§

Droplet

Lucide droplet.

§

Ellipsis

Lucide ellipsis.

§

EllipsisVertical

Lucide ellipsis-vertical.

§

Expand

Lucide expand.

Lucide external-link.

§

Eye

Lucide eye.

§

EyeOff

Lucide eye-off.

§

File

Lucide file.

§

FileCode

Lucide file-code.

§

FilePlus

Lucide file-plus.

§

FileText

Lucide file-text.

§

Files

Lucide files.

§

Film

Lucide film.

§

Flag

Lucide flag.

§

Folder

Lucide folder.

§

FolderOpen

Lucide folder-open.

§

FolderPlus

Lucide folder-plus.

§

Funnel

Lucide funnel.

§

Gift

Lucide gift.

§

GitBranch

Lucide git-branch.

§

GitCommitHorizontal

Lucide git-commit-horizontal.

§

GitMerge

Lucide git-merge.

§

GitPullRequest

Lucide git-pull-request.

§

Globe

Lucide globe.

§

GraduationCap

Lucide graduation-cap.

§

Grid2x2

Lucide grid-2x2.

§

GripHorizontal

Lucide grip-horizontal.

§

GripVertical

Lucide grip-vertical.

§

HardDrive

Lucide hard-drive.

§

Hash

Lucide hash.

§

Headphones

Lucide headphones.

§

Heart

Lucide heart.

§

History

Lucide history.

§

House

Lucide house.

§

Image

Lucide image.

§

Inbox

Lucide inbox.

§

Info

Lucide info.

§

Italic

Lucide italic.

§

Key

Lucide key.

§

Keyboard

Lucide keyboard.

§

Languages

Lucide languages.

§

Laptop

Lucide laptop.

§

Layers

Lucide layers.

§

LayoutDashboard

Lucide layout-dashboard.

§

LayoutGrid

Lucide layout-grid.

§

LayoutList

Lucide layout-list.

§

Lightbulb

Lucide lightbulb.

Lucide link.

§

Link2

Lucide link-2.

§

List

Lucide list.

§

ListChecks

Lucide list-checks.

§

ListFilter

Lucide list-filter.

§

ListOrdered

Lucide list-ordered.

§

Loader

Lucide loader.

§

LoaderCircle

Lucide loader-circle.

§

Lock

Lucide lock.

§

LockOpen

Lucide lock-open.

§

LogIn

Lucide log-in.

§

LogOut

Lucide log-out.

§

Mail

Lucide mail.

§

Map

Lucide map.

§

MapPin

Lucide map-pin.

§

Maximize

Lucide maximize.

§

Maximize2

Lucide maximize-2.

§

Menu

Lucide menu.

§

MessageCircle

Lucide message-circle.

§

MessageSquare

Lucide message-square.

§

Mic

Lucide mic.

§

MicOff

Lucide mic-off.

§

Minimize

Lucide minimize.

§

Minimize2

Lucide minimize-2.

§

Minus

Lucide minus.

§

Monitor

Lucide monitor.

§

Moon

Lucide moon.

§

MousePointer

Lucide mouse-pointer.

§

Move

Lucide move.

§

OctagonAlert

Lucide octagon-alert.

§

Package

Lucide package.

§

Palette

Lucide palette.

§

PanelLeft

Lucide panel-left.

§

PanelRight

Lucide panel-right.

§

Paperclip

Lucide paperclip.

§

Pause

Lucide pause.

§

Pencil

Lucide pencil.

§

Phone

Lucide phone.

§

Pin

Lucide pin.

§

Pipette

Lucide pipette.

§

Play

Lucide play.

§

Plus

Lucide plus.

§

Power

Lucide power.

§

Printer

Lucide printer.

§

Puzzle

Lucide puzzle.

§

Quote

Lucide quote.

§

Redo2

Lucide redo-2.

§

RefreshCw

Lucide refresh-cw.

§

Repeat

Lucide repeat.

§

Rocket

Lucide rocket.

§

RotateCcw

Lucide rotate-ccw.

§

RotateCw

Lucide rotate-cw.

§

Rows2

Lucide rows-2.

§

Rss

Lucide rss.

§

Save

Lucide save.

§

Scissors

Lucide scissors.

§

Search

Lucide search.

§

Send

Lucide send.

§

Server

Lucide server.

§

Settings

Lucide settings.

§

Settings2

Lucide settings-2.

§

Share

Lucide share.

§

Share2

Lucide share-2.

§

Shield

Lucide shield.

§

ShieldCheck

Lucide shield-check.

§

ShoppingBag

Lucide shopping-bag.

§

ShoppingCart

Lucide shopping-cart.

§

Shrink

Lucide shrink.

§

Shuffle

Lucide shuffle.

§

SkipBack

Lucide skip-back.

§

SkipForward

Lucide skip-forward.

§

SlidersHorizontal

Lucide sliders-horizontal.

§

Smartphone

Lucide smartphone.

§

Smile

Lucide smile.

§

Sparkles

Lucide sparkles.

§

Square

Lucide square.

§

SquareCheck

Lucide square-check.

§

SquarePen

Lucide square-pen.

§

Star

Lucide star.

§

Strikethrough

Lucide strikethrough.

§

Sun

Lucide sun.

§

SunMoon

Lucide sun-moon.

§

Table

Lucide table.

§

Tablet

Lucide tablet.

§

Tag

Lucide tag.

§

Tags

Lucide tags.

§

Terminal

Lucide terminal.

§

TextAlignCenter

Lucide text-align-center.

§

TextAlignEnd

Lucide text-align-end.

§

TextAlignStart

Lucide text-align-start.

§

ThumbsDown

Lucide thumbs-down.

§

ThumbsUp

Lucide thumbs-up.

§

Timer

Lucide timer.

§

Trash

Lucide trash.

§

Trash2

Lucide trash-2.

§

TrendingDown

Lucide trending-down.

§

TrendingUp

Lucide trending-up.

§

TriangleAlert

Lucide triangle-alert.

§

Truck

Lucide truck.

§

Type

Lucide type.

§

Underline

Lucide underline.

§

Undo2

Lucide undo-2.

Lucide unlink.

§

Upload

Lucide upload.

§

User

Lucide user.

§

UserCheck

Lucide user-check.

§

UserMinus

Lucide user-minus.

§

UserPlus

Lucide user-plus.

§

Users

Lucide users.

§

Video

Lucide video.

§

Volume2

Lucide volume-2.

§

VolumeX

Lucide volume-x.

§

Wallet

Lucide wallet.

§

WandSparkles

Lucide wand-sparkles.

§

Wifi

Lucide wifi.

§

WifiOff

Lucide wifi-off.

§

Wrench

Lucide wrench.

§

X

Lucide x.

§

Zap

Lucide zap.

§

ZoomIn

Lucide zoom-in.

§

ZoomOut

Lucide zoom-out.

Implementations§

Source§

impl IconName

Source

pub const ALL: &'static [IconName]

Every icon, in name order.

Source

pub const fn name(self) -> &'static str

Lucide’s own kebab-case name, e.g. "circle-check".

Source

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

The asset path HeroGpuiAssets serves this icon under, e.g. "herogpui/icons/lucide/circle-check.svg".

Source

pub const fn svg(self) -> &'static [u8] ⓘ

The embedded SVG document, byte-identical to lucide-static.

Source§

impl IconName

Source

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

The icon Lucide calls name (kebab-case, as in IconName::name).

Source

pub fn path_with_stroke_width(self, width: f32) -> SharedString

The asset path of this icon drawn with width as its stroke width (in the 24-unit viewBox; Lucide’s default is DEFAULT_STROKE_WIDTH): path with a ?stroke-width=<w> query that HeroGpuiAssets serves as the rewritten file. The width is rounded to three decimals and negative widths count as zero; the default width, and a non-finite one, give the plain path.

Source

pub fn from_path(path: &str) -> Option<Self>

The icon whose IconName::path is path.

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 From<IconName> for SharedString

Source§

fn from(icon: IconName) -> Self

Converts to this type from the input type.
Source§

impl From<IconName> for Icon

Source§

fn from(icon: IconName) -> Self

Converts to this type from the input type.
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 Ord for IconName

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. 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 PartialOrd for IconName

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<K> MapSeekTarget<K> for K
where K: Ord,

Source§

fn cmp_cursor(&self, cursor_location: &K) -> Ordering

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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