diff options
author | 2021-01-07 21:07:44 +0100 | |
---|---|---|
committer | 2021-01-07 21:07:44 +0100 | |
commit | e7344d03b467e87b3e50fa8d7ecd74994b46a4e6 (patch) | |
tree | 387bbdc78c0d20cbc3943343573164d0a92bc724 /native/src/widget/pane_grid/split.rs | |
parent | 31522e30aa1436f634a2675ba69d12495ff672bc (diff) | |
download | iced-e7344d03b467e87b3e50fa8d7ecd74994b46a4e6.tar.gz iced-e7344d03b467e87b3e50fa8d7ecd74994b46a4e6.tar.bz2 iced-e7344d03b467e87b3e50fa8d7ecd74994b46a4e6.zip |
Use `BTreeMap` for splits and regions in `pane_grid`
This preserves ordering between calls to update and draw logic.
Diffstat (limited to 'native/src/widget/pane_grid/split.rs')
-rw-r--r-- | native/src/widget/pane_grid/split.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/pane_grid/split.rs b/native/src/widget/pane_grid/split.rs index 16975abc..8132272a 100644 --- a/native/src/widget/pane_grid/split.rs +++ b/native/src/widget/pane_grid/split.rs @@ -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); |