MapRender

Trait MapRender 

Source
pub trait MapRender<G: GenericNode> {
    type Item;
    type Output;

    // Required method
    fn map_render(
        self,
        callback: impl Fn(Self::Item) -> G + 'static,
    ) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn map_render( self, callback: impl Fn(Self::Item) -> G + 'static, ) -> Self::Output

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<T: Clone + 'static, G: GenericNode> MapRender<G> for Vec<T>

Source§

type Item = T

Source§

type Output = MappedVec<<Vec<T> as MapRender<G>>::Item, G>

Source§

fn map_render( self, callback: impl Fn(Self::Item) -> G + 'static, ) -> MappedVec<Self::Item, G>

Source§

impl<T: Clone + 'static, I: Iterator<Item = T>, G: GenericNode> MapRender<G> for Enumerate<I>

Source§

type Item = (usize, T)

Source§

type Output = MappedVec<<Enumerate<I> as MapRender<G>>::Item, G>

Source§

fn map_render( self, callback: impl Fn(Self::Item) -> G + 'static, ) -> MappedVec<Self::Item, G>

Implementors§

Source§

impl<T: Clone + 'static + PartialEq, I: SignalVec<Item = T> + Unpin + 'static, G: GenericNode> MapRender<G> for hirola_core::prelude::signal_vec::Enumerate<I>

Source§

impl<T: Clone + 'static, G: GenericNode> MapRender<G> for MutableSignalVec<T>

Source§

impl<T: Clone + 'static, I: SignalVec<Item = T> + 'static, F: FnMut(&T) -> bool + 'static, G: GenericNode> MapRender<G> for Filter<I, F>

Source§

type Item = T

Source§

type Output = MappedVec<<Filter<I, F> as MapRender<G>>::Item, G>