Use BTreeMap for splits and regions in pane_grid

This preserves ordering between calls to update and draw logic.
This commit is contained in:
Héctor Ramón Jiménez 2021-01-07 21:07:44 +01:00
parent 31522e30aa
commit e7344d03b4
4 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,5 @@
/// A divider that splits a region in a [`PaneGrid`] into two different panes.
///
/// [`PaneGrid`]: crate::widget::PaneGrid
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Split(pub(super) usize);