Skip to main content

IntoUiElementInExt

Trait IntoUiElementInExt 

Source
pub trait IntoUiElementInExt<H: UiHost>: IntoUiElement<H> + Sized {
    // Provided method
    fn into_element_in<'a, Cx>(self, cx: &mut Cx) -> AnyElement
       where Cx: ElementContextAccess<'a, H>,
             H: 'a { ... }
}
Expand description

Explicit landing helpers for surfaces that only expose ElementContextAccess rather than a raw &mut ElementContext<...>.

Provided Methods§

Source

fn into_element_in<'a, Cx>(self, cx: &mut Cx) -> AnyElement
where Cx: ElementContextAccess<'a, H>, H: 'a,

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<H: UiHost, T> IntoUiElementInExt<H> for T
where T: IntoUiElement<H>,