diff options
author | 2020-05-07 00:40:07 +0200 | |
---|---|---|
committer | 2020-05-22 21:55:18 +0200 | |
commit | d1f2a184394e0439db58918f88f51745fdaf59fc (patch) | |
tree | 53498aabf5d6c5e50b55a4ce866543fd38cca6e8 | |
parent | 33448508a524db6447b380cc236be6f0d5ca8a86 (diff) | |
download | iced-d1f2a184394e0439db58918f88f51745fdaf59fc.tar.gz iced-d1f2a184394e0439db58918f88f51745fdaf59fc.tar.bz2 iced-d1f2a184394e0439db58918f88f51745fdaf59fc.zip |
Implement `Clone` for `pane_grid::State`
-rw-r--r-- | native/src/widget/pane_grid/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs index ed2813b8..6bb3fd9c 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -21,7 +21,7 @@ use std::collections::HashMap; /// [`Pane`]: struct.Pane.html /// [`Split`]: struct.Split.html /// [`State`]: struct.State.html -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct State<T> { pub(super) panes: HashMap<Pane, T>, pub(super) internal: Internal, @@ -248,7 +248,7 @@ impl<T> State<T> { } } -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Internal { layout: Node, last_id: usize, |