Skip to main content

View

Trait View 

Source
pub trait View: Sized + 'static {
    // Required method
    fn render<'a>(&mut self, cx: &'a mut Scope<Self>) -> Element<'a>;
}
Expand description

有状态视图接口(常驻 PodPool,拥有独立局部刷新边界)。

Required Methods§

Source

fn render<'a>(&mut self, cx: &'a mut Scope<Self>) -> Element<'a>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§