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

@ -1,5 +1,7 @@
#![allow(missing_docs)]
use std::{collections::VecDeque, time};
/// A bunch of time measurements for debugging purposes.
#[derive(Debug)]
pub struct Debug {
is_enabled: bool,
@ -30,6 +32,9 @@ pub struct Debug {
}
impl Debug {
/// Creates a new [`Debug`].
///
/// [`Debug`]: struct.Debug.html
pub fn new() -> Self {
let now = time::Instant::now();