Struct Lazy
once_cell::sync
pub struct Lazy<T, F: Fn() -> T = fn() -> T> { /* fields omitted */ }
impl<T, F: Fn() -> T> Lazy<T, F>
pub fn new(f: F) -> Lazy<T, F>
pub fn deref_static(&'static self) -> &'static T
impl<T: Debug, F: Debug + Fn() -> T> Debug for Lazy<T, F>
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, F> Send for Lazy<T, F> where F: Send, T: Send,
impl<T, F> Sync for Lazy<T, F> where F: Sync, T: Send + Sync,