Struct protobuf::lazy::Lazy [] [src]

pub struct Lazy<T> {
    pub lock: Once,
    pub ptr: *const T,
}

Fields

lock: Once ptr: *const T

Methods

impl<T> Lazy<T>
[src]

fn get<F>(&'static mut self, init: F) -> &'static T where F: FnOnce() -> T