Skip to main content

IntoRender

Trait IntoRender 

pub trait IntoRender {
    type Output;

    // Required method
    fn into_render(self) -> Self::Output;
}
Expand description

Declares that this type can be converted into some other type, which can be rendered.

Required Associated Types§

type Output

The renderable type into which this type can be converted.

Required Methods§

fn into_render(self) -> Self::Output

Consumes this value, transforming it into the renderable type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

§

impl<T> IntoRender for T
where T: Render,

§

type Output = T