Struct swiss_army_knife::StaticInitializedOnce [−][src]
pub struct StaticInitializedOnce<Value: Sized> { /* fields omitted */ }
Expand description
A wrapper type to use with mutable static fields where one does not want the overhead and inflexibility of lazy_static!
.
Implementations
Uninitialized value suitable for use in a static.
Initialize once.
Not thread safe; indeed, may panic in debug mode.
Value.
Auto Trait Implementations
impl<Value> RefUnwindSafe for StaticInitializedOnce<Value> where
Value: RefUnwindSafe,
impl<Value> Send for StaticInitializedOnce<Value> where
Value: Send,
impl<Value> Sync for StaticInitializedOnce<Value> where
Value: Sync,
impl<Value> Unpin for StaticInitializedOnce<Value> where
Value: Unpin,
impl<Value> UnwindSafe for StaticInitializedOnce<Value> where
Value: UnwindSafe,