rustd#rustc 1.72.0 (5680fa18f 2023-08-23)ՆQ4-46a989d0e2cef827e$ɛDp>-b114db70ea0690b1rustc_std_workspace_core ūu sR-13da980d6c74fec5 }ޱL{ :-8f88c761e33f2651YnFmZܝ--649be05783c8912epWĪ9/-f002c8f83a289c4b &c~~*ĽVa-682387162b570769cfg_ifz$kdgK!--05a2cedbb78c1d4f miniz_oxidePnzn )m-9c3df673b2797081adlerA%lon  2-c6afbee8d1102512 hashbrown8*^| -356231f77d1e268arustc_std_workspace_allocL%gqG-80ed5799bf463787 std_detecta^Ʒc -1bccb7a942e1b311rustc_demanglekŗ,N/ST%L)-bc6864da821ce9a2 addr2line2Ȃ']51:.-4930b3dc482158f7gimli~2)F25˼-65bea4bb6af40828object^]UVW-919f89587cbed68dmemchrk/YO+-c6624cb4360306cdBhnge],Q-f9018f9cee1cc5ff doc_comment     lazy spin_no_std   Lazy      INITgetF __lazy_static_create__lazy_static_internal lazy_static LazyStatic initialize 77       wr\;        {-P      211Once1inner1 LOF888   Cell valueL~ m  8 2 Lazy(Cell::new(None), ONCE_INIT) C11       C  2 < !       ?Y ?Y ?Y              ?Y  ?Y  Z Z A DBattempted to derefence an uninitialized lazy static. This is a bugBB   Z              C C11    ?Y?Y Z        x        1 1   111 _ref__self11  110P11110P           __Deref  % . A macro for declaring lazily evaluated statics. Using this macro, it is possible to have `static`s that require code to be executed at runtime in order to be initialized. This includes anything requiring heap allocations, like vectors or hash maps, as well as anything that requires function calls to be computed. # Syntax ```ignore lazy_static! { [pub] static ref NAME_1: TYPE_1 = EXPR_1; [pub] static ref NAME_2: TYPE_2 = EXPR_2; ... [pub] static ref NAME_N: TYPE_N = EXPR_N; } ``` Attributes (including doc comments) are supported as well: ```rust # #[macro_use] # extern crate lazy_static; # fn main() { lazy_static! { /// This is an example for using doc comment attributes static ref EXAMPLE: u8 = 42; } # } ``` # Semantics For a given `static ref NAME: TYPE = EXPR;`, the macro generates a unique type that implements `Deref` and stores it in a static with name `NAME`. (Attributes end up attaching to this type.) On first deref, `EXPR` gets evaluated and stored internally, such that all further derefs can return a reference to the same object. Note that this can lead to deadlocks if you have multiple lazy statics that depend on each other in their initialization. Apart from the lazy initialization, the resulting "static ref" variables have generally the same properties as regular "static" variables: - Any type in them needs to fulfill the `Sync` trait. - If the type has a destructor, then it will not run when the process exits. # Example Using the macro: ```rust #[macro_use] extern crate lazy_static; use std::collections::HashMap; lazy_static! { static ref HASHMAP: HashMap = { let mut m = HashMap::new(); m.insert(0, "foo"); m.insert(1, "bar"); m.insert(2, "baz"); m }; static ref COUNT: usize = HASHMAP.len(); static ref NUMBER: u32 = times_two(21); } fn times_two(n: u32) -> u32 { n * 2 } fn main() { println!("The map has {} entries.", *COUNT); println!("The entry for `0` is \"{}\".", HASHMAP.get(&0).unwrap()); println!("A expensive calculation on a static results in: {}.", *NUMBER); } ``` # Implementation details The `Deref` implementation uses a hidden static variable that is guarded by an atomic check on each access. # Cargo features This crate provides one cargo feature: - `spin_no_std`: This allows using this crate in a no-std environment, by depending on the standalone `spin` crate.   !https://docs.rs/lazy_static/1.4.0#<     %      $inline_lazy.rs7    unreachable_unchecked  1 ONCE_INIT  2 SizedUnpinDropFnFnMutFnOnce  JKy9ExactSizeIterator9Extend8 89      & $         % " !  ' #      (i i m m p Gt t } }  I       34/,). +  - *01  2Box8,4&    wr\;          JJ  L          %J J    !                  NAME                  P                               #   # %                  t        MAKE TY           TAIL        W   Z       "        "               __static_ref_initialize       __stability  !8      LAZY  c       a  b        !  ! !! !!!  !  ! !! !! ! !!! ! !! ! ! ! !!""" " X" X""""""""" "" " """"""""  ""  " """ "" """% ### ### missing_copy_implementations#### ### non_camel_case_types#### ### # ##$##$# # $$$$$  $ $ $$ $$$ __private_field$$$$$$$ $$$ $$$$$  $ $ $$ $$$ $$$ $$% m$%%%%%%%%%%%% % %% %%#% %*%&%%%%%%% %% % % % %& && &&& &&  &&& && &&&&&& W&&  & &&&'  ' '''''''''' ' ''' ' '' ''' ''' '''''' W' ''''(''''''' '' ' ' ' ' '' '' '(( ((  ((( (( (((((( W((  ( ((()  ( (((((((((( ( ((( ( ( (( ((( ((( (((((( W( (()))))))))) )) ) ) )))))))  ))  ) ) ) )) )) ))) ))  ))) )) )))))) W))  ) )))*  ) ********** * *** *******  * * * ** *** *** ****** W* ********,I Support trait for enabling a few common operation on lazy static values.*L+5 This is implemented by each defined lazy static, and+8* used by the free functions in this crate.+-, ,,,,, ,,, !7 !7, ,0*: Takes a shared reference to a lazy static and initializes,= it if it has not been already.-"-G This can be used to control the initialization point of a lazy static.-J. Example:. . ```rust.  #[macro_use]. extern crate lazy_static;.. lazy_static! {.5 static ref BUFFER: Vec = (0..255).collect();.8 }// fn main() {/& lazy_static::initialize(&BUFFER);/)/ // .../) work_with_initialized_data(&BUFFER);0,̊0- # fn work_with_initialized_data(_: &[u8]) {}00 ```00 "7 "7   1J1 1  111,1 `E)с響 () Ҋ ܫ&PP! fΎH о s^ J1`vG ȣlG B"&% hU (fq} .8o5 ٪8Uۊ YK LUڗ݉ C1 8V& Oڊ J4 "? 署כK? ,I 0?Q Pw2 V=\ u&̊ )<'r'~CF$E%8&OCnF%F%:&PCoF5%)&&@C_Fz%&&'FL# #! J%" K&CFB>$%F'B%% '2<DHLSnr%'*g8  ?Y 5[kY?Y sݵ $crate::assert?YYgeneric_assert_internals& npU jKb$crate::panic::panic_2015 ?YZA@ 8 $crate::cfg?YY$ IR ?YY ͍r=jO debug_assert Z>Y ' Z#Z4Z[#K  9*-1-"*%[Pgv`g/home/steffen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.4.0/src/inline_lazy.rs ]Uu$L oDD41>91,FNME,$F1=- # =6%"p, )$Iqj&ZT+cbcx86_64-unknown-linux-gnu .9D/en" -643a017f62beb017 Aׁhh((##xx``PP  PPP P xxx4x44444ttD$D$$$