pub trait Projection {
// Required methods
fn name(&self) -> &str;
fn project(
&self,
model: &Workbook,
window: &Window,
out: &mut dyn FnMut(&str),
);
}Expand description
A projection: a pure function from the model and a window to lines, the
shape every door prints (SD-23). The grid is the first (KERNEL.4),
the sentence pane the second, the dependency cone drawn as a diagram the
third (KERNEL.12). A projection never edits the model.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".