diff options
Diffstat (limited to 'native/src/widget/pane_grid/state.rs')
-rw-r--r-- | native/src/widget/pane_grid/state.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs index 41f3cffd..4b13fb8e 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -56,6 +56,10 @@ impl<T> State<T> { (Self::with_content(Content::Pane(first_pane_state)), Pane(0)) } + /// Creates a new [`State`] with the given [`Content`]. + /// + /// [`State`]: struct.State.html + /// [`Content`]: enum.Content.html pub fn with_content(content: impl Into<Content<T>>) -> Self { let mut panes = HashMap::new(); |