zng_wgt

Trait IconNames

Source
pub trait IconNames {
    // Required method
    fn names(self) -> impl Iterator<Item = Txt>;
}
Expand description

Adapter for ICONS queries.

Can be "name" or ["name", "fallback-name1"] names.

Required Methods§

Source

fn names(self) -> impl Iterator<Item = Txt>

Iterate over names, from most wanted to least.

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.

Implementations on Foreign Types§

Source§

impl IconNames for &'static str

Source§

fn names(self) -> impl Iterator<Item = Txt>

Source§

impl IconNames for &[&'static str]

Source§

fn names(self) -> impl Iterator<Item = Txt>

Source§

impl IconNames for &[Txt]

Source§

fn names(self) -> impl Iterator<Item = Txt>

Source§

impl IconNames for Txt

Source§

fn names(self) -> impl Iterator<Item = Txt>

Source§

impl IconNames for Vec<Txt>

Source§

fn names(self) -> impl Iterator<Item = Txt>

Source§

impl<const N: usize> IconNames for [&'static str; N]

Source§

fn names(self) -> impl Iterator<Item = Txt>

Implementors§