pub trait View {
// Required methods
fn shape(&self) -> &dyn Shape;
fn get(&self, key: Key) -> Value<'_>;
// Provided method
fn call(
&self,
key: Key,
args: &[Value<'_>],
with: &mut dyn FnMut(Value<'_>),
) { ... }
}Expand description
What a template reads.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".