Skip to main content

Icon

Enum Icon 

pub enum Icon {
Show 236 variants LayoutGrid, Settings2, Mouse, Keyboard, Users, Printer, Globe, Wifi, Bluetooth, Monitor, Battery, Shield, Maximize2, Minimize2, X, ChevronUp, ChevronDown, ChevronLeft, Plus, Search, PenTool, Code, Terminal, FileText, BarChart, Layers, Settings, Home, Camera, Power, Folder, FolderOpen, File, Image, Music, Film, Archive, FileCode, ArrowLeft, ArrowRight, ArrowUp, ArrowDown, ChevronRight, RotateCcw, RotateCw, Copy, Scissors, ClipboardPaste, Trash2, Pencil, Square, AArrowDown, AArrowUp, Ruler, Minus, FolderPlus, FilePlus, List, Star, Pin, HardDrive, Check, Flame, GalleryVerticalEnd, History, Timer, ThumbsUp, ThumbsDown, ListVideo, PictureInPicture2, Sparkles, Eye, MousePointer2, Menu, Info, CloudDownload, ArrowUpDown, Bell, Play, Pause, Refresh, ExternalLink, Trash, MoreHorizontal, Inbox, Send, Reply, Mail, Paperclip, Calendar, Ban, Download, Sun, Volume2, VolumeX, WifiOff, EthernetPort, Mic, MicOff, SkipForward, SkipBack, ArrowBigUp, Delete, CornerDownLeft, Undo2, Redo2, TriangleAlert, PanelLeft, PanelRight, EyeOff, Phone, Link, MapPin, QrCode, ScanLine, SwitchCamera, User, UserPlus, Hash, Smile, SmilePlus, Video, PhoneOff, Lock, MessageSquare, Clock, AlarmClock, Hourglass, Bookmark, Tag, Rss, Upload, Type, Box, Contrast, Columns2, Palette, Crop, Usb, CircleCheck, Disc3, Bold, Italic, Underline, Strikethrough, Superscript, Subscript, Heading1, Heading2, ListOrdered, Quote, ReplyAll, Forward, MailOpen, AlignLeft, AlignCenter, AlignRight, AlignJustify, BringToFront, SendToBack, Baseline, Highlighter, Table, ListTree, Shuffle, Repeat, Repeat1, Heart, ListMusic, Speaker, Headphones, Gauge, LocateFixed, Navigation, Flag, CornerUpLeft, CornerUpRight, ArrowUpLeft, ArrowUpRight, ArrowDownLeft, ArrowDownRight, Coffee, Utensils, Beer, Landmark, Trees, TrainFront, BedDouble, ShoppingBag, Hospital, Droplet, Wind, Cloud, CloudRain, CloudSnow, Moon, Hand, PawPrint, Plane, Trophy, Lightbulb, SdCard, Brush, Circle, Slash, Pipette, Eraser, LockOpen, Unlink, Bot, SquareDashed, CircleDashed, Lasso, WandSparkles, PaintBucket, SquaresUnite, SquaresSubtract, SquaresIntersect, SquaresExclude, SquareTerminal, ScreenShare, AppWindow, MonitorSmartphone, AlignEndVertical, ALargeSmall, AlignCenterVertical, Fingerprint, AlignEndHorizontal, BatteryCharging, Accessibility, AlignStartVertical, AlignHorizontalDistributeCenter, CircleAlert, AlignVerticalDistributeCenter, AlignCenterHorizontal, AlignStartHorizontal,
}
Expand description

Stable identifier for a lucide glyph. New entries map 1:1 to lucide icon kebab names (e.g. Icon::LayoutGrid → layout-grid).

Variants§

§

LayoutGrid

§

Settings2

§

Mouse

§

Keyboard

§

Users

§

Printer

§

Globe

§

Wifi

§

Bluetooth

§

Monitor

§

Battery

§

Shield

§

Maximize2

§

Minimize2

§

X

§

ChevronUp

§

ChevronDown

§

ChevronLeft

§

Plus

§

Search

§

PenTool

§

Code

§

Terminal

§

FileText

§

BarChart

§

Layers

§

Settings

§

Home

§

Camera

§

Power

§

Folder

§

FolderOpen

§

File

§

Image

§

Music

§

Film

§

Archive

§

FileCode

§

ArrowLeft

§

ArrowRight

§

ArrowUp

§

ArrowDown

§

ChevronRight

§

RotateCcw

§

RotateCw

§

Copy

§

Scissors

§

ClipboardPaste

§

Trash2

§

Pencil

§

Square

§

AArrowDown

Make the text smaller.

§

AArrowUp

Make the text larger.

§

Ruler

Show or hide a ruler.

§

Minus

A window’s minimize control.

§

FolderPlus

§

FilePlus

§

List

§

Star

§

Pin

§

HardDrive

§

Check

§

Flame

§

GalleryVerticalEnd

§

History

§

Timer

§

ThumbsUp

§

ThumbsDown

§

ListVideo

§

PictureInPicture2

§

Sparkles

§

Eye

§

MousePointer2

§

Menu

§

Info

§

CloudDownload

§

ArrowUpDown

§

Bell

§

Play

§

Pause

§

Refresh

§

Trash

§

MoreHorizontal

§

Inbox

§

Send

§

Reply

§

Mail

§

Paperclip

§

Calendar

§

Ban

§

Download

§

Sun

§

Volume2

§

VolumeX

§

WifiOff

§

EthernetPort

Lucide ethernet-port — the RJ45 socket outline reads as “cable” at 14 px where a plug icon does not.

§

Mic

§

MicOff

§

SkipForward

§

SkipBack

§

ArrowBigUp

The Shift key. Rendered filled for a latched Caps-Lock (see Icon::draw_filled).

§

Delete

§

CornerDownLeft

§

Undo2

Undo — a leftward arrow curving back on itself. Lucide undo-2.

§

Redo2

Redo — the mirror of Icon::Undo2. Lucide redo-2.

§

TriangleAlert

A warning: Lucide triangle-alert.

§

PanelLeft

Show or hide the sidebar: a window with a rule near its leading edge. Lucide panel-left.

§

PanelRight

Show or hide the inspector: the mirror of Icon::PanelLeft.

§

EyeOff

§

Phone

§

MapPin

§

QrCode

§

ScanLine

§

SwitchCamera

§

User

§

UserPlus

§

Hash

§

Smile

§

SmilePlus

§

Video

§

PhoneOff

§

Lock

§

MessageSquare

§

Clock

§

AlarmClock

§

Hourglass

§

Bookmark

§

Tag

§

Rss

§

Upload

§

Type

§

Box

§

Contrast

§

Columns2

§

Palette

§

Crop

§

Usb

§

CircleCheck

§

Disc3

§

Bold

§

Italic

§

Underline

§

Strikethrough

§

Superscript

§

Subscript

§

Heading1

§

Heading2

§

ListOrdered

§

Quote

§

ReplyAll

§

Forward

§

MailOpen

§

AlignLeft

§

AlignCenter

§

AlignRight

§

AlignJustify

§

BringToFront

§

SendToBack

§

Baseline

§

Highlighter

§

Table

§

ListTree

§

Shuffle

§

Repeat

§

Repeat1

§

Heart

§

ListMusic

§

Speaker

§

Headphones

§

Gauge

§

LocateFixed

§

Navigation

§

Flag

§

CornerUpLeft

§

CornerUpRight

§

ArrowUpLeft

§

ArrowUpRight

§

ArrowDownLeft

§

ArrowDownRight

§

Coffee

§

Utensils

§

Beer

§

Landmark

§

Trees

§

TrainFront

§

BedDouble

§

ShoppingBag

§

Hospital

§

Droplet

§

Wind

§

Cloud

§

CloudRain

§

CloudSnow

§

Moon

§

Hand

§

PawPrint

§

Plane

§

Trophy

§

Lightbulb

§

SdCard

An SD card: Lucide sd-card as it shipped before the set dropped it.

§

Brush

A paint brush. Lucide brush.

§

Circle

A circle, for an ellipse tool. Lucide circle.

§

Slash

A diagonal line. Lucide slash.

§

Pipette

An eyedropper that picks a colour. Lucide pipette.

§

Eraser

An eraser. Lucide eraser.

§

LockOpen

Unlocked. Lucide lock-open.

Linked: moves with what it belongs to. Lucide link. Unlinked: stays put on its own. Lucide unlink.

§

Bot

An agent. Lucide bot.

§

SquareDashed

A rectangle of an area being selected. Lucide square-dashed.

§

CircleDashed

An ellipse of an area being selected. Lucide circle-dashed.

§

Lasso

A freehand selection. Lucide lasso.

§

WandSparkles

Selecting by colour, a magic wand. Lucide wand-sparkles.

§

PaintBucket

Filling an area with colour. Lucide paint-bucket.

§

SquaresUnite

Shapes united into one. Lucide squares-unite.

§

SquaresSubtract

One shape taken out of another. Lucide squares-subtract.

§

SquaresIntersect

Only where shapes overlap. Lucide squares-intersect.

§

SquaresExclude

Where either shape is, but not both. Lucide squares-exclude.

§

SquareTerminal

A shell on another machine (SSH). Lucide square-terminal.

§

ScreenShare

Another machine’s screen, shared (VNC). Lucide screen-share.

§

AppWindow

A desktop session in a window (RDP). Lucide app-window.

§

MonitorSmartphone

One of your own devices. Lucide monitor-smartphone.

§

AlignEndVertical

§

ALargeSmall

§

AlignCenterVertical

§

Fingerprint

§

AlignEndHorizontal

§

BatteryCharging

§

Accessibility

§

AlignStartVertical

§

AlignHorizontalDistributeCenter

§

CircleAlert

§

AlignVerticalDistributeCenter

§

AlignCenterHorizontal

§

AlignStartHorizontal

Implementations§

§

impl Icon

pub const ALL: [Icon; 236]

Every icon, in declaration order.

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

The icon’s lucide kebab name (Icon::LayoutGrid → layout-grid): how data that cannot name the enum (a resource’s search row, a manifest) names an icon.

§

impl Icon

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

The icon a lucide kebab name names, as Self::name spells it.

§

impl Icon

pub fn draw( self, scene: &mut Scene, transform: Affine, rect: Rect, color: AlphaColor<Srgb>, )

Paint this glyph centred inside rect, stroked in color at the concept’s default 1.5 px lucide width — equivalent to draw_icon with self and LUCIDE_DEFAULT_STROKE_PX. Pass Affine::IDENTITY for transform when rect is already in scene space.

pub fn draw_filled( self, scene: &mut Scene, transform: Affine, rect: Rect, color: AlphaColor<Srgb>, )

Paint the icon as a solid fill rather than a stroked outline — for glyphs that read as filled when “on” (starred, a selected pin). Only closed sub-paths fill meaningfully; Star and similar single-loop glyphs are authored closed for exactly this.

pub fn draw_with_stroke( self, scene: &mut Scene, transform: Affine, rect: Rect, color: AlphaColor<Srgb>, stroke_px: f64, )

Same as Icon::draw but with an explicit output stroke width in pixels — use when a call site needs a heavier or lighter glyph than the 1.5 px default (e.g. a large hero icon).

Trait Implementations§

§

impl Clone for Icon

§

fn clone(&self) -> Icon

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
§

impl Debug for Icon

§

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

Formats the value using the given formatter. Read more
§

impl Hash for Icon

§

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

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
§

impl PartialEq for Icon

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Icon

§

impl Eq for Icon

§

impl StructuralPartialEq for Icon

Auto Trait Implementations§

§

impl Freeze for Icon

§

impl RefUnwindSafe for Icon

§

impl Send for Icon

§

impl Sync for Icon

§

impl Unpin for Icon

§

impl UnsafeUnpin for Icon

§

impl UnwindSafe for Icon

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
§

impl<T> AnyEq for T
where T: Any + PartialEq,

§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

§

fn as_any(&self) -> &(dyn Any + 'static)

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
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

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

§

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

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

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

§

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

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

§

fn simd_from(_simd: S, value: T) -> T

§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

§

fn simd_into(self, simd: S) -> T

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

§

impl<T> Fruit for T
where T: Send + Downcast,

§

impl<T> MaybeSendSync for T
where T: Send + Sync + ?Sized,

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T

§

impl<T> WasmNotSync for T
where T: Sync,