ElementType

Trait ElementType 

Source
pub trait ElementType {
    type Props<'a>
       where Self: 'a;
}
Expand description

A trait implemented by all element types to define the properties that can be passed to them.

This trait is automatically implemented for all types that implement Component.

Required Associated Types§

Source

type Props<'a> where Self: 'a

The type of the properties that can be passed to the 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§

Source§

impl<C: Component> ElementType for C

Source§

type Props<'a> = <C as Component>::Props<'a>