Write documentation for new pane_grid API
This commit is contained in:
parent
2ab7341fa5
commit
230bd6f747
3 changed files with 58 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue