pub trait IntoElement: Sized {
type Element: Element;
// Required method
fn into_element(self) -> Self::Element;
// Provided method
fn into_any_element(self) -> AnyElement { ... }
}Expand description
Implemented by any type that can be converted into an element.
Required Associated Types§
Required Methods§
Sourcefn into_element(self) -> Self::Element
fn into_element(self) -> Self::Element
Convert self into a type that implements Element.
Provided Methods§
Sourcefn into_any_element(self) -> AnyElement
fn into_any_element(self) -> AnyElement
Convert self into a dynamically-typed AnyElement.
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.