diff options
author | 2024-09-05 14:59:42 +0200 | |
---|---|---|
committer | 2024-09-05 14:59:42 +0200 | |
commit | eada3b8bf298c8436f30a5bc81032bed303d1e1e (patch) | |
tree | 8591eabeb733fe08fdce68dd377c71e74396220d /widget/src/lazy/component.rs | |
parent | 14e686cd37c29e404c33ac8e94a64fe411d9075a (diff) | |
parent | 7cb12e3c3b62871953a35cee55499b52fddb9944 (diff) | |
download | iced-eada3b8bf298c8436f30a5bc81032bed303d1e1e.tar.gz iced-eada3b8bf298c8436f30a5bc81032bed303d1e1e.tar.bz2 iced-eada3b8bf298c8436f30a5bc81032bed303d1e1e.zip |
Merge pull request #2289 from JL710/Component-doc
feature doc to Component trait
Diffstat (limited to 'widget/src/lazy/component.rs')
-rw-r--r-- | widget/src/lazy/component.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/widget/src/lazy/component.rs b/widget/src/lazy/component.rs index 1bf04195..1ec07e37 100644 --- a/widget/src/lazy/component.rs +++ b/widget/src/lazy/component.rs @@ -30,6 +30,7 @@ use std::rc::Rc; /// /// Additionally, a [`Component`] is capable of producing a `Message` to notify /// the parent application of any relevant interactions. +#[cfg(feature = "lazy")] pub trait Component<Message, Theme = crate::Theme, Renderer = crate::Renderer> { /// The internal state of this [`Component`]. type State: Default; |