Write documentation for the `debug` feature

This commit is contained in:
Héctor Ramón Jiménez 2020-04-02 03:33:30 +02:00
parent 703f7657e1
commit 8c8325d0cf
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,9 @@ use crate::{window, Command, Element, Executor, Settings, Subscription};
/// you do not intend to perform any background work in your program, the /// you do not intend to perform any background work in your program, the
/// [`Sandbox`](trait.Sandbox.html) trait offers a simplified interface. /// [`Sandbox`](trait.Sandbox.html) trait offers a simplified interface.
/// ///
/// When using an [`Application`] with the `debug` feature enabled, a debug view
/// can be toggled by pressing `F12`.
///
/// [`Application`]: trait.Application.html /// [`Application`]: trait.Application.html
/// ///
/// # Examples /// # Examples

View File

@ -12,6 +12,9 @@ use crate::{
/// ///
/// An [`Application`](trait.Application.html) can execute asynchronous actions /// An [`Application`](trait.Application.html) can execute asynchronous actions
/// by returning a [`Command`](struct.Command.html) in some of its methods. /// by returning a [`Command`](struct.Command.html) in some of its methods.
///
/// When using an [`Application`] with the `debug` feature enabled, a debug view
/// can be toggled by pressing `F12`.
pub trait Application: Sized { pub trait Application: Sized {
/// The graphics backend to use to draw the [`Application`]. /// The graphics backend to use to draw the [`Application`].
/// ///