mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-30 10:13:56 +01:00
Fill: the trend menu cache has a type alias, as main's clippy settings now require
This commit is contained in:
1 parent
a0a2627894
commit
364e48dcab
1 file changed
+3
-1
@@ -21,6 +21,8 @@ pub(crate) type PaneQuad = ((u32, u32), (u32, u32), Rect);
|
||||
type PagesCache = ((u64, u64, usize), Vec<(RangeRef, u32)>);
|
||||
/// Cached Show Details cells, keyed by (doc uid, revision, sheet, pivot).
|
||||
type DetailsCache = ((u64, u64, usize, usize), Option<std::collections::HashSet<(u32, u32)>>);
|
||||
/// Cached fill-menu trend entries (label, mode), keyed by (doc uid, revision, sheet, source, dragged range).
|
||||
pub type FillTrendsCache = ((u64, u64, usize, RangeRef, RangeRef), Vec<(&'static str, &'static str)>);
|
||||
|
||||
mod cell_paint;
|
||||
mod cursor;
|
||||
@@ -197,7 +199,7 @@ pub struct GridState {
|
||||
pub fill_menu: Option<(RangeRef, RangeRef, Pos2)>,
|
||||
/// The trends the fill menu lists, cached per (doc uid, revision, sheet, source, dragged range):
|
||||
/// finding them reads every source cell.
|
||||
pub fill_menu_trends: Option<((u64, u64, usize, RangeRef, RangeRef), Vec<(&'static str, &'static str)>)>,
|
||||
pub fill_menu_trends: Option<FillTrendsCache>,
|
||||
/// After a left-drag of the fill handle: the Auto Fill Options button beside the filled cells.
|
||||
pub fill_tag: Option<FillTag>,
|
||||
/// The right-clicked chart, picture, shape or slicer: where to open its menu, its kind and id.
|
||||
|
||||
Reference in new issue
Block a user