Expand description
Symbol Unicode characters
General symbols and special characters for common use cases.
§Examples
use unicode_rs::prelude::*;
// Get a checkmark in different themes
let minimal_check = Symbol::Check.get_char(UnicodeTheme::Minimal); // 'v'
let rich_check = Symbol::Check.get_char(UnicodeTheme::Rich); // '✓'
let fancy_check = Symbol::Check.get_char(UnicodeTheme::Fancy); // '✅'
// Use with global configuration
set_global_config(UnicodeConfig::with_theme(UnicodeTheme::Rich));
let check = get_char(&Symbol::Check, None); // '✓'§Character Reference
| Symbol | Minimal | Basic | Rich | Fancy |
|---|---|---|---|---|
| Check | v | ✓ | ✓ | ✅ |
| X | X | ✗ | ✖ | ❌ |
| ! | ! | ! | ❗ | ❗ |
| ? | ? | ? | ❓ | ❓ |
Modules§
- chars
- Convenience constants for symbols
Enums§
- Symbol
- General symbols for common UI elements and indicators