IconNamed

Trait IconNamed 

Source
pub trait IconNamed {
    // Required method
    fn path(self) -> SharedString;
}
Expand description

Types implementing this trait can automatically be converted to Icon.

This allows you to implement a custom version of IconName that functions as a drop-in replacement for other UI components.

Required Methods§

Source

fn path(self) -> SharedString

Returns the embedded path of the icon.

Implementors§