pub trait View: Sized + Serialize {
type Fields: ViewFields;
// Provided method
fn as_view(&self) -> ViewContext<'_, Self> { ... }
}Required Associated Types§
type Fields: ViewFields
Provided Methods§
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.