Files
archy/core/target/debug/deps/liblazy_static-4cfba7580baa962b.rmeta
T

164 lines
20 KiB
Plaintext
Raw Normal View History

rust
ÁM#rustc 1.93.0 (254b59607 2026-01-19)Á³VOÐêùÿ²?ÑL¼§Ì±-a7a40eb546f9e2b0Áõ…·fÊ ¦%g--c48c539199cbc88bÁá\ƒ¦è3$|]åŒ[IÚ tæ-14b12edc9f8cd90bÁë&Gf·Ã ¬ëñq:¤»b-bb76018b1173caf6Áà 9m Ù„«ÐÒþá•cB;-030c5b0bba47cc8fÁrustc_std_workspace_coreÁÛ¹þÓ7>H%¸ÚÉ­-4b81d37a5530864dÁüÃùs<Uß7VyóHr#QÏ-c66cc7807550ce25Á miniz_oxideÁõFÖˆÚ™ª‹"ÞXzLVª-62cbc7af83058505Áadler2Á—wÉD‘嵯|6¨%Œ
+-2f171dd2394b4b62Á hashbrownÁ,ïcV¼¨ø¢:Ê\'È߈-9571ba9e0f6c7a90Árustc_std_workspace_allocÁ%¥Èxµù·¼5Ä3Bœ-aac566ad65903fa4Á
std_detectÁMmáýZ^9õ Îà§e˜÷e-2edb296e590136d8Árustc_demangleÁ@¼§VÉNb˜æ¨fHÌ+V3-53b132e4a2fa6e26Ácfg_ifÁfÝv.Å"ÒÜuPp¹ˆ¶-f76b385d7d4d7f3eÁ addr2lineÁÕú-WiúQVÓ¬
µT§5-fe25100bd73e48e4ÁgimliÁ¹xLáÇí÷‘o±Ñ8£Å-265ba9e6e4f70b3fÁobjectÁÔ³ÝzÓÿ¶ò°öM›¼òü`-9ae0d1f8ea52a318ÁmemchrÁRÎ÷׎™te~QÓ¿ØC\Ò-0bff3c8e8f4e489eÁ  –©HtGNÏ·ˆ!á-d69228d077d46f36Á doc_commentÁ\Û«³lazyÁ³LazyÁ
  ì íINITÁgetÁ __lazy_static_createÁ__lazy_static_internalÁ lazy_staticÁ
LazyStaticÁ
initializeÁÜ 

   ¢ìí 2K‹Ï^éa† üÜ ¬æ
Ͼ
» +8
?
ê,ÒÒ MaybeUninitÁÒuninitÁüÒ˜ügÇ@ÇeÉR» ® ûü×1
 » Œ5ÿ4ÿ4OnceÁ€5innerÁù4‚ýu´b$bÔ üÀI É,É,qË,˜¸+»\¡Ø Ê¡ n¡ m`¯Œ5­
4€­
ü‘=
» æ©   ü€OL‡
5» £¦±yü‡H
Ž
ø,¡ 
/ ”Ý ©  )Ú¡ á8áJ Yeáy ƒÚ¡ áìÛ Ñ  á
'Ú» á6áH
Wcáw Ú» á Ѥ á²¾áÐ Üæô   Ѩ á·Äá× äïþ    ÜÝ
» 6­ü¥Û » ˵ © ­
tÜi³q » š ¡ À ¡ ò ŽÑEáMáUá]dÑá áá#Ñ+á3:AHѸáÀÇÎÕøþü*ÖªÆîˆ³Ž ¾¾
œ ©.©$,¬­„­
» M#ü¢!©
ë,¡ ·IÔ©ÎP ©Üe©\ÿ¡ » Ìæ³µ˜³þgÁÁöéŸÅ
_ref__selfÁþä1´1
» $´1#¼1üì0P©–1´$1©Xõ4uÄÔ
 »  ) 4Ž;­
BIW
 » r ~ Ž­
ž³Oý¤Ú __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<TYPE>` 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<u32, &'static str> = {
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.
Á¡ë î ¢8¹ ý7!https://docs.rs/lazy_static/1.5.0Áüÿ#üè<³Ó ýU
ÀM
ìœ L
¹ K
¡ ˜ Ÿ8°4™t“ ³øq$“É,­ Ò· ÿ4 ONCE_INITÁL¢ Œ5
Š®¨âŒ®©â®UnpinÁ-½®åâDropÁ%š®  ®š®®AsyncFnÁ=®Þ
AsyncFnMutÁU®á AsyncFnOnceÁ]§®æ²® µÝE‰® ¢Þe“® ¤é® ˜ê® šM-²®ôN-¹®ñž®ú°®÷Œ£ ®òJExactSizeIteratorÁ¸ ®©KExtendÁ5¢
®·J²
®®JÂ
®ÞKÓ ®ø°Ð ®ú°Ðû° ®ü°ý°ý%– ®ê³œ ®ð³ñ³Ò¡ ®í³Òî³
®˜¢À
®ä
®Žé
®ï
®ŒÒä
®À
®â
®åu€®ˆð=®ñm™®ó®È %µ®å U»®é
®å ®Šµ®õ®šu-ý®Þuâ%„®þÿ®ã`=‘®ÄÆš®£¥¦®ÁbÔ¤®ÃÔÈÛ®žÛ¢Ü®ÉÜØðe‡®âó®£ä®ž5®š…—® à®ã®Ÿe‘®œ£®¤«®¥®Œ®§ümÿ®¦œ®±BoxÁ«®5ˆ ®ÉHE ®×5­ï ®ßAŒØæ„ëÛ¬‚ÑÜÅ´¾¬Ý¼Ô‘§r


©â» ä»  2K‹Ï^éa† Ž­
r
bŽ­
 
» rt¤í  Ž  ­
¬‹¬C ¼C$“ ¤À ü¥L¬   » æ©â °©©» ï
» ¡ þL
AC<closure_kind>Á<closure_signature>Á<upvars>ÁÜü„ %¬C ¼C$“  üÍ !¡À  à  Ê 8°&|® 3 ï  ß
 õ  ˆ
 , ö 8NAMEÁ& û 8Û$
, ƒ
8
&
8
*Š

 Ü
84—
, ž
8×G
& £
, ¥