UiMap

Trait UiMap 

Source
pub trait UiMap {
    // Required method
    fn ui_fields(&self) -> impl Iterator<Item = (&str, Cow<'_, str>)>;

    // Provided method
    fn ui_serialize(&self) -> HashMap<&str, Cow<'_, str>> { ... }
}
Expand description

Collections of name - value pairs, for HTML pages

Required Methods§

Source

fn ui_fields(&self) -> impl Iterator<Item = (&str, Cow<'_, str>)>

Provided Methods§

Source

fn ui_serialize(&self) -> HashMap<&str, Cow<'_, 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§