diff options
author | 2020-05-28 02:04:31 +0200 | |
---|---|---|
committer | 2020-05-28 02:04:31 +0200 | |
commit | 508128436c5da88d4b4f384a9fe73288320eb9ec (patch) | |
tree | aec7f254f73437bd074b5bbc7667df904d59cefd /native/src/debug/basic.rs | |
parent | b9d42a45a8ce491e5fa21a86db0799bcd731d0dd (diff) | |
download | iced-508128436c5da88d4b4f384a9fe73288320eb9ec.tar.gz iced-508128436c5da88d4b4f384a9fe73288320eb9ec.tar.bz2 iced-508128436c5da88d4b4f384a9fe73288320eb9ec.zip |
Write documentation for new `iced_native` API
Diffstat (limited to '')
-rw-r--r-- | native/src/debug/basic.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/native/src/debug/basic.rs b/native/src/debug/basic.rs index d46edba6..5338d0d9 100644 --- a/native/src/debug/basic.rs +++ b/native/src/debug/basic.rs @@ -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(); |