pub enum Icon {
Show 69 variants Key, World, Warning, Server, MarkedDirectory, UserCommunication, Parts, Notepad, WorldSocket, Identity, PaperReady, Digicam, IRCommunication, MultipleKeys, Energy, Scanner, WorldStar, CDRom, Monitor, Email, Configuration, ClipboardReady, PaperNew, Screen, EnergyCareful, Inbox, Disk, Drive, QuickTime, EncryptedTerminal, Console, Printer, Icons, Run, Settings, WorldComputer, Archive, Banking, Smb, Clock, EmailSearch, PaperFlag, Memory, RecycleBin, Note, Expired, Info, Package, Folder, FolderOpen, FolderPackage, LockOpen, PaperLocked, Checked, Pen, Thumbnail, Book, Listing, UserKey, Tool, Home, Star, Tux, Feather, Apple, Wikipedia, Money, Certificate, Phone,
}
Expand description

The icon of an entry or group.

Variants

Key

The key icon.

World

The world icon.

Warning

The warning icon.

Server

The server icon.

MarkedDirectory

The marked directory icon.

UserCommunication

The user communication icon.

Parts

The parts icon.

Notepad

The notepad icon.

WorldSocket

The world with socket icon.

Identity

The identity icon.

PaperReady

The paper ready icon.

Digicam

The digicam icon.

IRCommunication

The infrared communication icon.

MultipleKeys

The multiple keys icon.

Energy

The energy icon.

Scanner

The scanner icon.

WorldStar

The world with star icon.

CDRom

The CD-ROM icon.

Monitor

The monitor icon.

Email

The email icon.

Configuration

The configuration icon.

ClipboardReady

The clipboard ready icon.

PaperNew

The new paper icon.

Screen

The screen icon.

EnergyCareful

The energy careful icon.

Inbox

The inbox icon.

Disk

The disk icon.

Drive

The drive icon.

QuickTime

The QuickTime icon.

EncryptedTerminal

The encrypted terminal icon.

Console

The console icon.

Printer

The printer icon.

Icons

The icons icon.

Run

The run icon.

Settings

The settings icon.

WorldComputer

The world with a computer icon.

Archive

The archive icon.

Banking

The banking icon.

Smb

The SMB icon (Windows networking).

Clock

The clock icon.

EmailSearch

The email search icon.

PaperFlag

The paper with flag icon.

Memory

The memory icon.

RecycleBin

The recycle bin icon.

Note

The note icon.

Expired

The expired icon.

Info

The info icon.

Package

The package icon.

Folder

The folder icon.

FolderOpen

The open folder icon.

FolderPackage

The packaged folder icon.

LockOpen

The open lock icon.

PaperLocked

The paper with lock icon.

Checked

The checked icon.

Pen

The pen icon.

Thumbnail

The thumbnail icon.

Book

The book icon.

Listing

The listing icon.

UserKey

The user’s key icon.

Tool

The tool icon.

Home

The home icon.

Star

The star icon.

Tux

The Tux logo.

Feather

The feather icon.

Apple

The Apple logo.

Wikipedia

The Wikipedia logo.

Money

The money icon.

Certificate

The certificate icon.

Phone

The phone icon.

Implementations

Attempts to convert an identifier to an icon.

Examples
use kpdb::Icon;

let icon = Icon::from_i32(0)?;

Gets the icon’s identifier.

Examples
use kpdb::Icon;

let icon = Icon::Key;
let icon_id = icon.to_i32();

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.