pub const SPINNER_FRAMES: &[&str] = &["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
pub const DOTS_FRAMES: &[&str] = &["⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"];
pub const PROGRESS_FULL: &str = "█";
pub const PROGRESS_HALF: &str = "▌";
pub const PROGRESS_EMPTY: &str = "░";
pub const BRAILLE: &[&str] = &[
"⠀", "⠁", "⠂", "⠃", "⠄", "⠅", "⠆", "⠇", "⡀", "⡁", "⡂", "⡃", "⡄", "⡅", "⡆", "⡇",
];
pub const fn bullet() -> &'static str {
"•"
}
pub const fn circle() -> &'static str {
"○"
}
pub const fn circle_filled() -> &'static str {
"●"
}
pub const fn square() -> &'static str {
"□"
}
pub const fn square_filled() -> &'static str {
"■"
}
pub const fn diamond() -> &'static str {
"◇"
}
pub const fn diamond_filled() -> &'static str {
"◆"
}
pub const fn triangle_right() -> &'static str {
"▶"
}
pub const fn triangle_left() -> &'static str {
"◀"
}
pub const fn triangle_up() -> &'static str {
"▲"
}
pub const fn triangle_down() -> &'static str {
"▼"
}
pub const fn powerline_right() -> &'static str {
""
}
pub const fn powerline_left() -> &'static str {
""
}
pub const fn powerline_right_thin() -> &'static str {
""
}
pub const fn powerline_left_thin() -> &'static str {
""
}
pub const fn powerline_round_right() -> &'static str {
""
}
pub const fn powerline_round_left() -> &'static str {
""
}
pub const fn music() -> &'static str {
""
}
pub const fn camera() -> &'static str {
""
}
pub const fn gamepad() -> &'static str {
""
}
pub const fn coffee() -> &'static str {
""
}
pub const fn beer() -> &'static str {
""
}
pub const fn pizza() -> &'static str {
""
}
pub const fn skull() -> &'static str {
""
}
pub const fn ghost() -> &'static str {
""
}
pub const fn robot() -> &'static str {
""
}
pub const fn alien() -> &'static str {
""
}
pub const fn crown() -> &'static str {
""
}
pub const fn trophy() -> &'static str {
""
}
pub const fn medal() -> &'static str {
""
}
pub const fn flag() -> &'static str {
""
}
pub const fn pin() -> &'static str {
""
}
pub const fn compass() -> &'static str {
""
}
pub const fn globe() -> &'static str {
""
}
pub const fn plane() -> &'static str {
""
}
pub const fn car() -> &'static str {
""
}
pub const fn bike() -> &'static str {
""
}
pub const fn train() -> &'static str {
""
}
pub const fn ship() -> &'static str {
""
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_misc_icons() {
assert_eq!(bullet(), "•");
assert_eq!(SPINNER_FRAMES.len(), 10);
assert_eq!(PROGRESS_FULL, "█");
}
}