Write documentation for new pane_grid API

This commit is contained in:
Héctor Ramón Jiménez 2020-05-22 22:15:44 +02:00
parent 2ab7341fa5
commit 230bd6f747
3 changed files with 58 additions and 0 deletions

View file

@ -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();