summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-01-05 19:16:06 +0100
committerLibravatar GitHub <noreply@github.com>2024-01-05 19:16:06 +0100
commitf5c6fa7338713a0430dcdfc5bd53f72103144f22 (patch)
tree36087fbf5a8f786119db3e943fc7c68e744601f6 /widget
parent3f5f99ca6e9f16cde6dd84841c43796e25d76893 (diff)
parent6c9dfbf01ec865f2ccf3b33cc8902d4e7141cd4f (diff)
downloadiced-f5c6fa7338713a0430dcdfc5bd53f72103144f22.tar.gz
iced-f5c6fa7338713a0430dcdfc5bd53f72103144f22.tar.bz2
iced-f5c6fa7338713a0430dcdfc5bd53f72103144f22.zip
Merge pull request #2184 from william-shere/master
Fix docs to include missing feature tags
Diffstat (limited to '')
-rw-r--r--widget/src/lazy/helpers.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/widget/src/lazy/helpers.rs b/widget/src/lazy/helpers.rs
index 8ca9cb86..5dc60d52 100644
--- a/widget/src/lazy/helpers.rs
+++ b/widget/src/lazy/helpers.rs
@@ -6,6 +6,7 @@ use std::hash::Hash;
/// Creates a new [`Lazy`] widget with the given data `Dependency` and a
/// closure that can turn this data into a widget tree.
+#[cfg(feature = "lazy")]
pub fn lazy<'a, Message, Renderer, Dependency, View>(
dependency: Dependency,
view: impl Fn(&Dependency) -> View + 'a,
@@ -19,6 +20,7 @@ where
/// Turns an implementor of [`Component`] into an [`Element`] that can be
/// embedded in any application.
+#[cfg(feature = "lazy")]
pub fn component<'a, C, Message, Renderer>(
component: C,
) -> Element<'a, Message, Renderer>
@@ -37,6 +39,7 @@ where
/// The `view` closure will be provided with the current [`Size`] of
/// the [`Responsive`] widget and, therefore, can be used to build the
/// contents of the widget in a responsive way.
+#[cfg(feature = "lazy")]
pub fn responsive<'a, Message, Renderer>(
f: impl Fn(Size) -> Element<'a, Message, Renderer> + 'a,
) -> Responsive<'a, Message, Renderer>