Fix doc to include missing feature tags
Helper functions behind `lazy` feature were missing the tag in the documentation.
This commit is contained in:
parent
3f5f99ca6e
commit
6c9dfbf01e
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ use std::hash::Hash;
|
||||||
|
|
||||||
/// Creates a new [`Lazy`] widget with the given data `Dependency` and a
|
/// Creates a new [`Lazy`] widget with the given data `Dependency` and a
|
||||||
/// closure that can turn this data into a widget tree.
|
/// closure that can turn this data into a widget tree.
|
||||||
|
#[cfg(feature = "lazy")]
|
||||||
pub fn lazy<'a, Message, Renderer, Dependency, View>(
|
pub fn lazy<'a, Message, Renderer, Dependency, View>(
|
||||||
dependency: Dependency,
|
dependency: Dependency,
|
||||||
view: impl Fn(&Dependency) -> View + 'a,
|
view: impl Fn(&Dependency) -> View + 'a,
|
||||||
|
|
@ -19,6 +20,7 @@ where
|
||||||
|
|
||||||
/// Turns an implementor of [`Component`] into an [`Element`] that can be
|
/// Turns an implementor of [`Component`] into an [`Element`] that can be
|
||||||
/// embedded in any application.
|
/// embedded in any application.
|
||||||
|
#[cfg(feature = "lazy")]
|
||||||
pub fn component<'a, C, Message, Renderer>(
|
pub fn component<'a, C, Message, Renderer>(
|
||||||
component: C,
|
component: C,
|
||||||
) -> Element<'a, Message, Renderer>
|
) -> Element<'a, Message, Renderer>
|
||||||
|
|
@ -37,6 +39,7 @@ where
|
||||||
/// The `view` closure will be provided with the current [`Size`] of
|
/// The `view` closure will be provided with the current [`Size`] of
|
||||||
/// the [`Responsive`] widget and, therefore, can be used to build the
|
/// the [`Responsive`] widget and, therefore, can be used to build the
|
||||||
/// contents of the widget in a responsive way.
|
/// contents of the widget in a responsive way.
|
||||||
|
#[cfg(feature = "lazy")]
|
||||||
pub fn responsive<'a, Message, Renderer>(
|
pub fn responsive<'a, Message, Renderer>(
|
||||||
f: impl Fn(Size) -> Element<'a, Message, Renderer> + 'a,
|
f: impl Fn(Size) -> Element<'a, Message, Renderer> + 'a,
|
||||||
) -> Responsive<'a, Message, Renderer>
|
) -> Responsive<'a, Message, Renderer>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue