pub struct UISymbols;Expand description
Centralized UI symbols and icons with ASCII fallbacks
Implementations§
Source§impl UISymbols
impl UISymbols
pub const FILE_FOLDER: &'static str = "📁"
pub const FILE_FOLDER_ASCII: &'static str = "[DIR]"
pub const FILE_PACKAGE: &'static str = "📦"
pub const FILE_PACKAGE_ASCII: &'static str = "[PKG]"
pub const FILE_HEADER: &'static str = "📑"
pub const FILE_HEADER_ASCII: &'static str = "[H]"
pub const FILE_SOURCE: &'static str = "📝"
pub const FILE_SOURCE_ASCII: &'static str = "[C]"
pub const FILE_RUST: &'static str = "🦀"
pub const FILE_RUST_ASCII: &'static str = "[RS]"
pub const FILE_ASM: &'static str = "🛠️"
pub const FILE_ASM_ASCII: &'static str = "[ASM]"
pub const FILE_GENERIC: &'static str = "📄"
pub const FILE_GENERIC_ASCII: &'static str = "[FILE]"
pub const STATUS_ACTIVE: &'static str = "✅"
pub const STATUS_ACTIVE_ASCII: &'static str = "[ON]"
pub const STATUS_DISABLED: &'static str = "⏸️"
pub const STATUS_DISABLED_ASCII: &'static str = "[OFF]"
pub const STATUS_FAILED: &'static str = "❌"
pub const STATUS_FAILED_ASCII: &'static str = "[FAIL]"
pub const STATUS_YES: &'static str = "✅ Yes"
pub const STATUS_YES_ASCII: &'static str = "[YES]"
pub const STATUS_NO: &'static str = "❌ No "
pub const STATUS_NO_ASCII: &'static str = "[NO]"
pub const NAV_TREE_BRANCH: &'static str = "├─"
pub const NAV_TREE_BRANCH_ASCII: &'static str = "+-"
pub const NAV_TREE_LAST: &'static str = "└─"
pub const NAV_TREE_LAST_ASCII: &'static str = "\\-"
pub const NAV_TREE_VERTICAL: &'static str = "│"
pub const NAV_TREE_VERTICAL_ASCII: &'static str = "|"
pub const NAV_TREE_SPACE: &'static str = " "
pub const BORDER_HORIZONTAL: &'static str = "─"
pub const BORDER_HORIZONTAL_ASCII: &'static str = "-"
pub const STATS_ICON: &'static str = "📊"
pub const STATS_ICON_ASCII: &'static str = "[STATS]"
pub const LIBRARY_ICON: &'static str = "📚"
pub const LIBRARY_ICON_ASCII: &'static str = "[LIBS]"
pub fn get_file_icon(extension: &str, use_ascii: bool) -> &'static str
pub fn get_status_icon(active: bool, use_ascii: bool) -> &'static str
pub fn get_yes_no_icon(yes: bool, use_ascii: bool) -> &'static str
Auto Trait Implementations§
impl Freeze for UISymbols
impl RefUnwindSafe for UISymbols
impl Send for UISymbols
impl Sync for UISymbols
impl Unpin for UISymbols
impl UnwindSafe for UISymbols
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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