Skip to main content

IntoView

Trait IntoView 

Source
pub trait IntoView:
    Sized
    + Render
    + RenderHtml
    + Send {
    // Required method
    fn into_view(self) -> View<Self>;
}
Expand description

A trait that is implemented for types that can be rendered.

Required Methods§

Source

fn into_view(self) -> View<Self>

Wraps the inner type.

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<T> IntoView for T
where T: Render + RenderHtml + Send,