Write documentation for new iced_native API

This commit is contained in:
Héctor Ramón Jiménez 2020-05-28 02:04:31 +02:00
parent b9d42a45a8
commit 508128436c
4 changed files with 39 additions and 3 deletions

View file

@ -14,7 +14,7 @@ pub trait Program: Sized {
/// The type of __messages__ your [`Program`] will produce.
///
/// [`Application`]: trait.Program.html
/// [`Program`]: trait.Program.html
type Message: std::fmt::Debug + Send;
/// Handles a __message__ and updates the state of the [`Program`].
@ -34,6 +34,6 @@ pub trait Program: Sized {
///
/// These widgets can produce __messages__ based on user interaction.
///
/// [`Program`]: trait.Application.html
/// [`Program`]: trait.Program.html
fn view(&mut self) -> Element<'_, Self::Message, Self::Renderer>;
}