plotlib::view

Trait View

Source
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§

Source

fn to_svg(&self, face_width: f64, face_height: f64) -> Result<Group, Error>

Source

fn to_text(&self, face_width: u32, face_height: u32) -> Result<String, Error>

Source

fn add_grid(&mut self, grid: Grid)

Source

fn grid(&self) -> &Option<Grid>

Implementors§