From 5e28f80af8349be2638eb80d2a06c81fd14d631c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 24 Sep 2019 15:15:34 +0200 Subject: Improve documentation --- core/src/length.rs | 1 + core/src/widget.rs | 16 +++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/src/length.rs b/core/src/length.rs index 3547b246..0e670038 100644 --- a/core/src/length.rs +++ b/core/src/length.rs @@ -1,3 +1,4 @@ +/// The strategy used to fill space in a specific dimension. #[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] pub enum Length { Fill, diff --git a/core/src/widget.rs b/core/src/widget.rs index 4700be0e..f9d4bf2a 100644 --- a/core/src/widget.rs +++ b/core/src/widget.rs @@ -7,21 +7,27 @@ //! ``` //! use iced_core::{button, Button}; //! ``` +mod checkbox; mod column; +mod image; +mod radio; mod row; pub mod button; -pub mod checkbox; -pub mod image; -pub mod radio; pub mod slider; pub mod text; +#[doc(no_inline)] pub use button::Button; + +#[doc(no_inline)] +pub use slider::Slider; + +#[doc(no_inline)] +pub use text::Text; + pub use checkbox::Checkbox; pub use column::Column; pub use image::Image; pub use radio::Radio; pub use row::Row; -pub use slider::Slider; -pub use text::Text; -- cgit