1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use logisheets_base::{CellId, ColId, RowId, SheetId};
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct SheetRangeVertex {
pub sheet_id: SheetId,
pub reference: MutReferenceVertex,
}
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub enum MutReferenceVertex {
ColRange(MutColRange),
RowRange(MutRowRange),
AddrRange(AddrRange),
}
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct MutColRange {
pub start: ColId,
pub end: ColId,
}
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct AddrRange {
pub start: CellId,
pub end: CellId,
}
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct MutRowRange {
pub start: RowId,
pub end: RowId,
}