[][src]Trait plaster::virtual_dom::vcomp::Transformer

pub trait Transformer<COMP: Component, FROM, TO> {
    fn transform(&mut self, from: FROM) -> TO;
}

Converts property and attach lazy components to it. This type holds context and components types to store an activatior which will be used later buring rendering state to attach component sender.

Required methods

fn transform(&mut self, from: FROM) -> TO

Transforms one type to another.

Loading content...

Implementors

impl<'a, COMP> Transformer<COMP, &'a str, String> for VComp<COMP> where
    COMP: Component
[src]

impl<'a, COMP, F, IN> Transformer<COMP, F, Option<Callback<IN>>> for VComp<COMP> where
    COMP: Component + Renderable<COMP>,
    F: Fn(IN) -> COMP::Message + 'static, 
[src]

impl<'a, COMP, T> Transformer<COMP, &'a T, T> for VComp<COMP> where
    COMP: Component,
    T: Clone
[src]

impl<COMP, T> Transformer<COMP, T, T> for VComp<COMP> where
    COMP: Component
[src]

Loading content...