embedded_list::list_source

Trait ListSource

Source
pub trait ListSource {
    type ListSourceItem: ListItem;

    // Required methods
    fn items(&self) -> impl Iterator<Item = Self::ListSourceItem>;
    fn item(&self, index: usize) -> Option<Self::ListSourceItem>;
}

Required Associated Types§

Required Methods§

Source

fn items(&self) -> impl Iterator<Item = Self::ListSourceItem>

Source

fn item(&self, index: usize) -> Option<Self::ListSourceItem>

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§