UISymbols

Struct UISymbols 

Source
pub struct UISymbols;
Expand description

Centralized UI symbols and icons with ASCII fallbacks

Implementations§

Source§

impl UISymbols

Source

pub const FILE_FOLDER: &'static str = "📁"

Source

pub const FILE_FOLDER_ASCII: &'static str = "[DIR]"

Source

pub const FILE_PACKAGE: &'static str = "📦"

Source

pub const FILE_PACKAGE_ASCII: &'static str = "[PKG]"

Source

pub const FILE_HEADER: &'static str = "📑"

Source

pub const FILE_HEADER_ASCII: &'static str = "[H]"

Source

pub const FILE_SOURCE: &'static str = "📝"

Source

pub const FILE_SOURCE_ASCII: &'static str = "[C]"

Source

pub const FILE_RUST: &'static str = "🦀"

Source

pub const FILE_RUST_ASCII: &'static str = "[RS]"

Source

pub const FILE_ASM: &'static str = "🛠️"

Source

pub const FILE_ASM_ASCII: &'static str = "[ASM]"

Source

pub const FILE_GENERIC: &'static str = "📄"

Source

pub const FILE_GENERIC_ASCII: &'static str = "[FILE]"

Source

pub const STATUS_ACTIVE: &'static str = "✅"

Source

pub const STATUS_ACTIVE_ASCII: &'static str = "[ON]"

Source

pub const STATUS_DISABLED: &'static str = "⏸️"

Source

pub const STATUS_DISABLED_ASCII: &'static str = "[OFF]"

Source

pub const STATUS_FAILED: &'static str = "❌"

Source

pub const STATUS_FAILED_ASCII: &'static str = "[FAIL]"

Source

pub const STATUS_YES: &'static str = "✅ Yes"

Source

pub const STATUS_YES_ASCII: &'static str = "[YES]"

Source

pub const STATUS_NO: &'static str = "❌ No "

Source

pub const STATUS_NO_ASCII: &'static str = "[NO]"

Source

pub const NAV_TREE_BRANCH: &'static str = "├─"

Source

pub const NAV_TREE_BRANCH_ASCII: &'static str = "+-"

Source

pub const NAV_TREE_LAST: &'static str = "└─"

Source

pub const NAV_TREE_LAST_ASCII: &'static str = "\\-"

Source

pub const NAV_TREE_VERTICAL: &'static str = "│"

Source

pub const NAV_TREE_VERTICAL_ASCII: &'static str = "|"

Source

pub const NAV_TREE_SPACE: &'static str = " "

Source

pub const BORDER_HORIZONTAL: &'static str = "─"

Source

pub const BORDER_HORIZONTAL_ASCII: &'static str = "-"

Source

pub const STATS_ICON: &'static str = "📊"

Source

pub const STATS_ICON_ASCII: &'static str = "[STATS]"

Source

pub const LIBRARY_ICON: &'static str = "📚"

Source

pub const LIBRARY_ICON_ASCII: &'static str = "[LIBS]"

Source

pub fn get_file_icon(extension: &str, use_ascii: bool) -> &'static str

Source

pub fn get_status_icon(active: bool, use_ascii: bool) -> &'static str

Source

pub fn get_yes_no_icon(yes: bool, use_ascii: bool) -> &'static str

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