[][src]Crate nerd_fonts

Nerd Fonts in rust.

How to use

In your Cargo.toml, add:

[dependencies]
nerd_fonts = "0.1"

Then import it:

extern crate nerd_fonts;

Use NerdFonts::load to load:

use nerd_fonts::NerdFonts;
let nf = NerdFonts {
    nf: NerdFonts::load(),
};
let nf_custom_c = nf.get("custom-c").unwrap(); // '\u{e61e}'

Structs

NerdFonts

NerdFonts includes nf field which stores the whole nerd fonts Yaml.