Skip to main content

Crate rnk_icons

Crate rnk_icons 

Source
Expand description

rnk-icons - Terminal icons library

A collection of Nerd Font icons for terminal UI applications.

§Example

use rnk_icons::{Icon, icons};

// Get a file icon
let rust_icon = icons::file::rust();
println!("{} main.rs", rust_icon);

// Get a UI icon
let folder = icons::ui::folder();
println!("{} src/", folder);

// With color (requires rnk or rnk-style)
let icon = Icon::new(icons::file::rust()).colored("#DEA584");

Modules§

icons
Icon collections organized by category
prelude
Prelude for convenient imports

Structs§

Icon
An icon with optional color