1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#[derive(Debug, Clone, Default)] pub enum PaneKind { #[default] EmptyPane, FunctionPane, GraphPane, } #[derive(Clone, Default, Debug)] pub struct Pane { pub kind: PaneKind, } impl Pane { pub fn new(kind: PaneKind) -> Self { Self { kind } } }