Expand description
Polyfill of the LazyLock type in the std library as of Rust 1.80.
The current file should be deleted soon, as we now support Rust 1.81 and
use the official LazyLock, and LazyCache as a wrapper around LazyLock
to allow for custom serialization definitions.
Re-exportsยง
use core::cell::UnsafeCell;๐use core::fmt;๐use core::ops::Deref;๐use serde::de::DeserializeOwned;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde::Serialize;๐use serde::Serialize;๐use serde::Serializer;๐use alloc::boxed::Box;๐
Structsยง
- Lazy
Cache - A thread-safe, lazily-initialized value.
Enumsยง
Type Aliasesยง
- LazyFn ๐