IntoView

Trait IntoView 

Source
pub trait IntoView {
    type Output: View;

    // Required method
    fn into_view(self, env: &Environment) -> Self::Output;
}
Expand description

A trait for converting values into views.

This trait allows different types to be converted into View implementations, enabling more flexible composition of UI elements.

Required Associated Types§

Source

type Output: View

The resulting View type after conversion.

Required Methods§

Source

fn into_view(self, env: &Environment) -> Self::Output

Converts the implementing type into a View.

§Arguments
  • env - The environment containing context for the view conversion.
§Returns

A View implementation that can be used in the UI.

Implementors§

Source§

impl<V> IntoView for V
where V: View,