Lines Matching refs:lazy
1 // Copyright 2016 lazy-static.rs Developers
48 if you have multiple lazy statics that depend on each other in their initialization.
50 Apart from the lazy initialization, the resulting "static ref" variables
105 pub mod lazy;
117 pub mod lazy;
148 fn initialize(lazy: &Self) {
149 let _ = &**lazy;
181 /// Support trait for enabling a few common operation on lazy static values.
183 /// This is implemented by each defined lazy static, and
187 fn initialize(lazy: &Self);
190 /// Takes a shared reference to a lazy static and initializes
193 /// This can be used to control the initialization point of a lazy static.
213 pub fn initialize<T: LazyStatic>(lazy: &T) {
214 LazyStatic::initialize(lazy);