Skip to main content

IconNameExt

Trait IconNameExt 

Source
pub trait IconNameExt {
    // Required method
    fn view(self, cx: &mut App) -> Entity<Icon>;
}
Expand description

Component view construction for the shared gpui_kit_assets::IconName. The legacy component IconName retains its inherent view method.

Required Methods§

Source

fn view(self, cx: &mut App) -> Entity<Icon>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IconNameExt for IconName

Source§

fn view(self, cx: &mut App) -> Entity<Icon>

Implementors§