Struct protobuf::lazy::Lazy [−][src]
pub struct Lazy<T> { /* fields omitted */ }Lasily initialized data.
Methods
impl<T> Lazy<T>[src]
impl<T> Lazy<T>pub fn get<F>(&'static mut self, init: F) -> &'static T where
F: FnOnce() -> T, [src]
pub fn get<F>(&'static mut self, init: F) -> &'static T where
F: FnOnce() -> T, Get lazy field value, initialize it with given function if not yet.