rust CF#rustc 1.79.0 (129f3b996 2024-06-10)_pj>V9-307ebf19f0f13d30J!BC`Ø^?y)-d9076ee5964191bfrustc_std_workspace_corep7 kbƭU-326b78eac9ecd050 ض폹 =-d5189b81a4fa4d36h >ٳ-52acaddcaaba04c6'F5# PݧF-ae2488b58226c836+Bԧ$ -07bb9745ec737292cfg_if]ƱooIo@-6eacdcc91004cefb miniz_oxidejցO6\-76779dce1f7ab63dadlerᝢ L>cI-01c5cc588623cb35 hashbrown"mxI˧Ҋ-bfa26dd63e299db5rustc_std_workspace_allocϝ1BI-75a2330a693e738f std_detect}飠Hl!-c16dfaf47799564erustc_demangle=-0}lct-f0068d76172a0372 addr2line0oCOrcI-8751b61bd13c15cfgimliױz|] ;l-a8b99dba9f449259object;}Z6Ha$-c88c426dd6780435memchr4sp?SȈ-e74540b31113a555 ' C;jJkg| -6a4779412a873200 doc_comment\<|<|lazy Lazy    INITgetF __lazy_static_create__lazy_static_internal lazy_static LazyStatic initialize 77    ԁ7      .: ?L $ MaybeUninituninitvalue,  1   L444Once4inner4Ꭵʣ I $##Cell# "꺕獺 s sd4_    ' 29@G __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 use lazy_static::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 use lazy_static::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.    l !https://docs.rs/lazy_static/1.5.0#<    d   4t$ $  $# \ $4 ONCE_INITL 4 u'5 u'6 5 '  % 5  m  5  m    %   ]  u  = & m # ] " %  U ( ] $  U   M !  e ) p-  p u%  u w- P {=  {    % R    M   U   e  0 -- 5* /  %,  M. e+ u1 E2 e3 -4 % Sized- % Unpin- Drop%  - 5 %  L- M- % % @ ExactSizeIterator@ Extend5@ e@ EA % %  %  %     = Box 5; E- 7 D9.ܝ"ԑC$  $ ԁ7  Cd    np  $  5 5$ $ L     7 7l78   7$ AC 788   7 %5 5$    !d |     4 t        NAME$   ,            4   :$    ,   $   $         ,   $   $    $   #d   #   4t  %          $  $              4      ,            $      t              MAKE$ TY         $                        TAIL$               \        @         B$      ,            $  ! $  , <       "$ 4        ,     $           4   4   __static_ref_initialize              4   4   __stability\    !8<           LAZY$      J$      H I\   $   ,    T      !  !  T! ! ! $! !  ! $! ! ! !  ! !  !  !  ! $! ! ! " " " A$" A" " " " " " " " " $" " $"  " " " " " " " " " " "  " " "  " " ,"" " %" " " # ," " # missing_copy_implementations" # # # ,# # # non_camel_case_types# # # # ,# # # L# # # # # # # # $#  # # # # # #  # 4# #  # $ $ __private_field|$ $ $ $ $ $ $ $ $ $ 4$ $ $ $ ,$ $ $ non_upper_case_globals$ $ $ $ $ $  $ 4$ $  $ $ $  $ $ $  $ $ % R|$ % % % % % % %% % %%d% % % %%# % * % & % % % % % % % $% % $%  % 4% & &  & & ,& & &  & & & & &  & & $& & & & & & @ & & &  && & '  ' ' ' ' ' ' ' ' ' ' ' $'  ' ' ' 4' ' '  ' ' '  ' ' '  ' ' ' ' ' ' @ '  ' ' ' ' ( ' ' ' ' ' ' ' $' ' $'  ' ' 4' ' (  ( ( ,( ( (  ( ( ( ( (  ( ( $( ( ( ( ( ( @ ( ( (  (( ( )  ( ( ( ) ( ( ( ( ( ( ( $(  ( ( ( ( 4( ( (  ( ( (  ( ( (  ( ( ( ( ( ( @ (  ( ) ) ) ) ) ) ) ) ) ) ) $) ) $)  ) ) ) ) ) ) ) ) ) ) ) ) 4) ) )  ) ) ,) ) )  ) ) ) ) )  ) ) $) ) ) ) ) ) @ ) ) )  )) ) *  ) * * * * * * * * * * $*  * * * * * * * * * * * * 4* * *  * * *  * * *  * * * * * * @ *  * * * * ** * *,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.+-T,,, , , 4,t,T,!7 !78 , i$,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:d.. ```rust\. use lazy_static::lazy_static;.!. lazy_static! {.5 static ref BUFFER: Vec = (0..255).collect();.8 },// fn main() {|/& lazy_static::initialize(&BUFFER);/)/ // ...t/) work_with_initialized_data(&BUFFER);0,k,0- # fn work_with_initialized_data(_: &[u8]) {}00 ```<0T0"7 "7 8   15 0 T1  $1 ">3k>0G?aݞ:3 m;epMнoUY4󡟫ӸeÎ'La?q9Sx-+j Q.řSigd=".( 1Qo&=wzN,@D\va~Q=Br_BDxK`Ftϻb/Le$7D7]bf }.GzS*33627A7F73'<J3%4 7;7 3p}3464733T@N)4"7Z36o\36K36X)=7A@9=04)73x3cV148?EPW^bfjnr} ,=DKQf* v#LjKb@)@1@9@\@L@r@ODHT #@a켃hBr_B3!;j Q.v ^zqc ~Q=1Qo[K 4"'LepMнDxK`oUYgVʨ!řSiqPj PݿbM Le$9S x-+ {[)?aݞa4@D\v:3 m;Ӹe&=wzN,Ftϻb/a?q0G=7e!r1jtQ]0`, 4&*Y=)OJO;^aR~Oge!r1jtQ]0Y/home/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.5.0/src/lib.rs J,WIl1,FONE0K0NA  ...;#K  "9*-1-",c]痈MsZa/home/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.5.0/src/inline_lazy.rs la6G/? 0,FONE!$&6N- / B61)$IĚCv ~(I DqEx86_64-unknown-linux-gnuŜ J ]{ ==1 -ec7e081fb4e8c168v#LDc# ' `Z#Z ##@#FF!!BB< < @ ` @@0!B((  ( ( `< < #F :a