IconProvider

Trait IconProvider 

Source
pub trait IconProvider {
    const BACK_ICON: &'static str;
    const FOLDER_ICON: &'static str;
    const FILE_ICON: &'static str;
    const OPEN_ICON: &'static str;
}
Expand description

A simple ‘static’ trait that provides the crate::PathPicker with fitting icons to be used in the GUI

Required Associated Constants§

Source

const BACK_ICON: &'static str

Source

const FOLDER_ICON: &'static str

Source

const FILE_ICON: &'static str

Source

const OPEN_ICON: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl IconProvider for DefaultIconProvider

Source§

const BACK_ICON: &'static str = "⤴"

Source§

const FOLDER_ICON: &'static str = "📁"

Source§

const FILE_ICON: &'static str = ""

Source§

const OPEN_ICON: &'static str = "📂"