Skip to main content

IntoElement

Trait IntoElement 

Source
pub trait IntoElement<'a, C, M>
where C: PixelColor + 'a, M: Clone + 'a,
{ // Required method fn into_element(self) -> Element<'a, C, M>; }
Expand description

Conversion from a concrete widget into an Element.

Required Methods§

Source

fn into_element(self) -> Element<'a, C, M>

Wrap self.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<'a, C, M, W> IntoElement<'a, C, M> for W
where C: PixelColor + 'a, M: Clone + 'a, W: Widget<C, M> + 'a,