Crate laizy

source · []
Expand description

Laizy

Crate API

Laizy is a Rust library that provides a simple, stable and thread-safe implementation of a Lazy

Features

NameDescriptionDependencies
nightlyAdds optimizations and features reserved to the nightly channelNone
futuresAllows to initialize values asynchronously with AsyncLazyfutures

Structs

AsyncLazyfutures

A lazy value that initializes via future

The lazy type. Lazy values aren’t initialized until requested by some part of the program. When requested, Lazy will initialize the value and return a reference to it

Functions

async_lazyfutures

Creates a new AsyncLazy without having to specify the future’s return type