Composable

Trait Composable 

Source
pub trait Composable {
    // Required methods
    fn compose(&self) -> NodeKey;
    fn clone_box(&self) -> Box<dyn Composable>;
}

Required Methods§

Source

fn compose(&self) -> NodeKey

Source

fn clone_box(&self) -> Box<dyn Composable>

Trait Implementations§

Source§

impl Clone for Box<dyn Composable>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<T> Composable for T
where T: Fn() -> NodeKey + Clone + 'static,