[][src]Macro qwutils::create_static_stor

macro_rules! create_static_stor {
    ($name:ident: $t:ty) => { ... };
    ($name:ident: $t:ty = $i:expr) => { ... };
    ($v:vis $name:ident: $t:ty) => { ... };
    ($v:vis $name:ident: $t:ty = $i:expr) => { ... };
}

generate a static global stor which is read fast but updated slow using cow technologies create_static_stor!(VISIBILITY NAME: TYPE) where T: ?Sized + Clone + Default + Send + Sync; TODO FIXME minimum required visibility is pub(super) stor type must implement Default and Clone generates a pub (TODO: visibility options) module with with and with_mut fns