Icon

Trait Icon 

Source
pub trait Icon {
    // Required method
    fn icon(&self) -> &'static str;
}
Expand description

Associate something to a nerdfont icon.

Those methods require nerdfont to be installed.

Required Methods§

Source

fn icon(&self) -> &'static str

Implementations on Foreign Types§

Source§

impl Icon for str

Source§

fn icon(&self) -> &'static str

Associate an extension to a nerdfont icon. Adapted from ranger_devicons

Source§

impl Icon for Path

Source§

fn icon(&self) -> &'static str

Icon from a path. Should only be used in tree display. Requires metadata and is quite heavy.

Implementors§