Attribute Macro lazy_attribute_core::lazy
source · #[lazy]
Expand description
Provides the #[lazy]
attribute to lazily evaluate functions.
The macro expands the function into a wrapper that caches the result
in a static OnceCell
.
Works for both synchronous and asynchronous
functions (with async
feature).