Skip to main content

Module lazy_cache

Module lazy_cache 

Source
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ยง

LazyCache
A thread-safe, lazily-initialized value.

Enumsยง

LazyCacheError
LazyCacheErrorOr

Type Aliasesยง

LazyFn ๐Ÿ”’