rust N\#rustc 1.76.0 (07dca489a 2024-02-04) @A}}-62a9b4d83244cb2br#3JIb'' @-4010f8e9d1f7f9aarustc_std_workspace_core?-]-fa2288bf7728f91c addr2line),SO)R%X-a2e883cf5bcf6347gimli$?g')&-df8440ef641907f8object_O?#-9e012890a70780c2memchrG ̇삭-60338fe528589910vt'FKj-401344856f0fc3c5 doc_comment     lazy spin_no_std   Lazy      INITgetF __lazy_static_create__lazy_static_internal lazy_static LazyStatic initialize 77       훾K       "        000Once0inner0ܿ8 ""Cell"value!ڶ   0_ 1       C  0 < "   U+             F DBattempted to derefence an uninitialized lazy static. This is a bugBB              x     "     _ref__self11  10P11            __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#<0    111 1     $2inline_lazy.rs23   "unreachable_unchecked   0 ONCE_INIT  0 SizedUnpinDrop  LM=ExactSizeIterator>Extend= =>89  9 9 ' %          & # "  ( $   !  )n n=s s>u Mz z> ? O ? ? @ 450-*/ ,  . +12  3Box:-6333&444   훾K  D    DDE  F  EE FF L         GG %E E  II ! I  J            NAME                   K                                  # N #N %                  t        MAKE TY           TAIL        S   V       "       "               __static_ref_initialize       __stability  !8      LAZY  a        ^  _        !  ! !! !!!  !  ! !! !! ! !!! ! !! ! ! ! !!""" " T" T""""""""" "" " """"""""  ""  " """ "" """% ### ### missing_copy_implementations#### ### non_camel_case_types#### ### # ##$##$# # $$$$$  $ $ $$ $$$ __private_field$$$$$$$ $$$ $$$$$  $ $ $$ $$$ $$$ $$% k$%%%%%%%%%%%% o%% %%#%*%&%%%%%%% %% % % % %& && &&& &&  &&& && &&&&&& S&&  & &&&'  ' '''''''''' ' ''' ' '' ''' ''' '''''' S' ''''(''''''' '' ' ' ' ' '' '' '(( ((  ((( (( (((((( S((  ( ((()  ( (((((((((( ( ((( ( ( (( ((( ((( (((((( S( (()))))))))) )) ) ) )))))))  ))  ) ) ) )) )) ))) ))  ))) )) )))))) S))  ) )))*  ) ********** * *** *******  * * * ** *** *** ****** S* ********,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   1E1 1  `˼J:ja$`˼JB,`˼J)`˼J\9Mba`˼J`'ASc@`˼Jg-!D`˼J /Ld`˼J97k`˼Je8`˼J\"uG`˼Jj[$_f`Z`˼JXa`˼JP`˼J IOls`˼JuSP`˼JdR E`˼JT`˼J k׼`˼J30o#`˼JэA}`˼Jd D?`˼J륲fi`˼JoG/w`˼JVz>\5`˼J.(}˕8N`˼JvZYE`˼JxI4`˼J#Kɡ[`˼J]X#`˼JkI @_`˼J뚥P$9~`˼J ^B`˼Jf7`˼J_^?`˼J@2GXWA""#/#y##D$$$6'7BCZDUC"`#$C    ### TJ"""###W%'7CDJG !" "" "*"4">"""" #(#b#r##-$=$$$$%'/'7BCSDGGG! """'"1";"C""""#1#e#y##0$$$T%,''7CC5GGGG`"""#"#H#o###:$$$$C=DGGL""""#4#h###3$R$$$C-DeGGC"" #&#^##$$$ADGK""#DKG""#DLG"#D$D K  \ "$IDGCRA"/#$C"" +5=AELgk"X%'7  `˼JjKb$crate::panic::panic_2015U+ FE`˼J0 $crate::cfgU++%`˼J끾](UU++`˼JԯK ٩ debug_assert ZT+ `˼JsrNKr2؝$crate::assertU++generic_assert_internals'`˼JN4RVRxRpRfS^RS]SgRRRSSSoSRRRSMSETSS ODHT #@`˼JkI @_`˼J`'ASc@`˼JB,`˼JP `˼Jd D?`˼Jf7 `˼JuSP`˼J)`˼JvZYE`˼J\"uG `˼JdR E`˼J IOls `˼JэA}`˼JXa `˼J.(}˕8N`˼J97k`˼J k׼`˼J]X#`˼JVz>\5`˼J#Kɡ[`˼J ^B`˼J뚥P$9~`˼Je8`˼Jj[$_f`Z `˼J륲fi`˼J /Ld`˼J_^?!`˼JT`˼Jg-!D`˼J@2"`˼JoG/w`˼J:ja$`˼J30o#`˼JxI4`˼J\9Mbaj zD (@ "gpJjGb!?a2 y"]F0j zD (@ "g_/Users/thiago/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.4.0/src/lib.rs (h@.1,FNME0K0NA  ...;#K  9*-1-"OhEeM[Tzg/Users/thiago/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.4.0/src/inline_lazy.rs ]Uu$L oDD4 9,FNME,$F1=- # =6%"p, )$IcIF"SldYm[aarch64-apple-darwinP N%Q -f6c7ae9bc363aef5`˼JB# ' `Z#Z ##@#FF!!BB<  @ ` @@0! B@ ( @ @  ( ( `< < #F :