Trait ComponentStatic

Source
pub trait ComponentStatic {
    type Props: Props;
    type Element;

    // Required method
    fn create_element(props: Self::Props, key: Option<Key>) -> Self::Element;
}

Required Associated Types§

Required Methods§

Source

fn create_element(props: Self::Props, key: Option<Key>) -> Self::Element

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§