pizarra 0.8.2

The backend for a simple vector hand-drawing application
Documentation
use crate::shape::{Shape, ShapeId};

#[derive(Debug)]
pub enum Action {
    Unfinished,
    Empty,

    Draw(ShapeId),
    Delete(Shape),

    Erase(Vec<Shape>),
    Redraw(Vec<ShapeId>),
}

impl Default for Action {
    fn default() -> Action {
        Action::Empty
    }
}