Skip to main content

IntoComponent

Trait IntoComponent 

Source
pub trait IntoComponent {
    // Required method
    fn into_component(self) -> Box<dyn Component>;
}
Expand description

Converts a component-like value into a boxed component.

Required Methods§

Source

fn into_component(self) -> Box<dyn Component>

Performs the conversion.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoComponent for &str

Source§

impl IntoComponent for Box<dyn Component>

Source§

impl IntoComponent for Str

Source§

impl IntoComponent for String

Implementors§

Source§

impl<T: Component + 'static> IntoComponent for T