pub trait View: Send + Sync {
// Required method
fn encode(&self, cx: &mut Cx, value: &Expr) -> Result<Expr>;
}Expand description
A view encoder: Value -> Scene. Views are pure: the same value and options
yield the same Scene.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".