Type Alias hermit_sync::Lazy

source ·
pub type Lazy<T, F = fn() -> T> = Lazy<RawSpinMutex, T, F>;
Expand description

A generic_once_cell::Lazy, initialized using RawSpinMutex.

Aliased Type§

struct Lazy<T, F = fn() -> T> { /* private fields */ }

Trait Implementations§

source§

impl<R, T, F> Deref for Lazy<R, T, F>where R: RawMutex, F: FnOnce() -> T,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.