Write documentation for UserInterface

This commit is contained in:
Héctor Ramón Jiménez 2019-08-29 00:58:42 +02:00
parent 51050fc45c
commit 268a5f0017
5 changed files with 214 additions and 14 deletions

View file

@ -44,10 +44,6 @@ use crate::{Event, Hasher, Layout, MouseCursor, Node, Point};
/// If you want to build your own widgets, you will need to implement this
/// trait.
///
/// Additionally, remember to also provide [`Into<Element>`] so your users can
/// easily turn your [`Widget`] into a generic [`Element`].
///
/// [`Into<Element>`]: ../struct.Element.html
/// [`Widget`]: trait.Widget.html
/// [`Element`]: ../struct.Element.html
pub trait Widget<Message, Renderer>: std::fmt::Debug {