pub trait View {
// Required methods
fn to_svg(&self, face_width: f64, face_height: f64) -> Result<Group, Error>;
fn to_text(
&self,
face_width: u32,
face_height: u32,
) -> Result<String, Error>;
fn add_grid(&mut self, grid: Grid);
fn grid(&self) -> &Option<Grid>;
}Required Methods§
fn to_svg(&self, face_width: f64, face_height: f64) -> Result<Group, Error>
fn to_text(&self, face_width: u32, face_height: u32) -> Result<String, Error>
fn add_grid(&mut self, grid: Grid)
fn grid(&self) -> &Option<Grid>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".