View

Trait View 

Source
pub trait View: Sized + Serialize {
    type Fields: ViewFields;

    // Provided method
    fn as_view(&self) -> ViewContext<'_, Self> { ... }
}

Required Associated Types§

Provided Methods§

Source

fn as_view(&self) -> ViewContext<'_, Self>

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§