pub struct Lazy<T: Send, F: FnOnce() -> T + Clone> {
constructor: F,
once: Once<T>,
}
Expand description
A lazy value that is initialized at most once.
Fields§
§constructor: F
§once: Once<T>
pub struct Lazy<T: Send, F: FnOnce() -> T + Clone> {
constructor: F,
once: Once<T>,
}
A lazy value that is initialized at most once.
constructor: F
§once: Once<T>