Expand description

Provides various implementation of lazily initialized types

Modules

Structs

A type that initialize itself only once on the first access

The actual type of statics attributed with #[dynamic(lazy,finalize)] The method from_generator is unsafe as the object must be a non mutable static.

The actual type of statics attributed with #[dynamic]. The method from_generator is unsafe because this kind of static can only safely be used through this attribute macros.

The actual type of statics attributed with #[dynamic(finalize)]. The method from_generator is unsafe because this kind of static can only safely be used through this attribute macros.

The actual type of mutable statics attributed with #[dynamic] The method from_generator is unsafe because this kind of static can only safely be used through this attribute macros.

The actual type of mutable statics attributed with #[dynamic(drop)] The method (new)Self::from_generator is unsafe because this kind of static can only safely be used through this attribute macros.

The actual type of mutable statics attributed with #[dynamic(finalize)] The method from_generator is unsafe because this kind of static can only safely be used through this attribute macros.

A mutable locked lazy that initialize its content on the first lock

The actual type of statics attributed with #[dynamic(lazy,finalize)]

The actual type of mutable statics attributed with #[dynamic(lazy,finalize)]

The actual type of mutable statics attributed with #[dynamic(primed)]

The actual type of mutable statics attributed with #[dynamic(primed,drop)]

The actual type of mutable statics attributed with #[dynamic(primed)]

The actual type of mutable statics attributed with #[dynamic(primed,drop)]

A version of Lazy whose reference can not be passed to other thread

UnSyncLazyDropedthread_local

The actual type of thread_local statics attributed with #[dynamic(drop)] The method from_generator is unsafe as the object must be a non mutable static.

UnSyncLazyFinalizethread_local

The actual type of thread_local statics attributed with #[dynamic(finalize)] The method from_generator is unsafe as the object must be a non mutable static.

A RefCell that initializes its content on the first access

The actual type of thread_local mutable statics attributed with #[dynamic(drop)] The method from_generator is unsafe as the object must be a non mutable thread_local static.

The actual type of mutable thread_local statics attributed with #[dynamic(finalize)] The method from_generator is unsafe as the object must be a non mutable thread_local static.

The actual type of mutable thread_local statics attributed with #[dynamic(primed)] The method from_generator is unsafe as the object must be a non mutable thread_local static.

The actual type of mutable thread_local statics attributed with #[dynamic(primed,drop)] The method from_generator is unsafe as the object must be a non mutable thread_local static.

Traits

Helper trait to ease access static lazy associated functions