pub trait View<T> {
// Required method
fn view<F: Frame, C: ColModify>(
&mut self,
data: T,
context: ViewContext<C>,
frame: &mut F,
);
// Provided methods
fn size<C: ColModify>(&mut self, data: T, context: ViewContext<C>) -> Size { ... }
fn view_size<F: Frame, C: ColModify>(
&mut self,
data: T,
context: ViewContext<C>,
frame: &mut F,
) -> Size { ... }
}Required Methods§
fn view<F: Frame, C: ColModify>( &mut self, data: T, context: ViewContext<C>, frame: &mut F, )
Provided Methods§
fn size<C: ColModify>(&mut self, data: T, context: ViewContext<C>) -> Size
fn view_size<F: Frame, C: ColModify>( &mut self, data: T, context: ViewContext<C>, frame: &mut F, ) -> Size
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.