Files
archy/core/target/debug/deps/libscopeguard-a4b16b7bab0b8d05.rlib
T

84 lines
26 KiB
Plaintext
Raw Normal View History

!<arch>
#1/12 0 0 0 0 28 `
__.SYMDEF#1/12 0 0 0 644 25716 `
lib.rmetaÏúíþ ˜%c8%c.rmeta__DWARF%c82 `d`d Prust
a#rustc 1.93.0 (254b59607 2026-01-19)Á³VOÐêùÿ²?ÑL¼§Ì±-a7a40eb546f9e2b0Áë&Gf·Ã ¬ëñq:¤»b-bb76018b1173caf6ÁOnUnwindÁDÀ6<6use_stdÁLš6œ6 OnSuccessÁLà7<°7¢Lº7œ°7defer_on_successÁ„§?<ô>¢Lþ>œô>defer_on_unwindÁ|²B<ÿA¢L‰BœÿAguard_on_successÁ„”[<áZ¢LëZœáZguard_on_unwindÁ|öb<Ãb¢LÍbœÃbtestsÁ,¤nà$™n³StrategyÁ 
should_runÁ
ðdeferÁ
ScopeGuardÁ˜dropfnÁstrategyÁ°¸
with_strategyÁ
into_innerÁguardÁ°  ° ¸$$°$¸$š$**°*¸*//°/¸/²44°4¸4ÍAlwaysÁ:Í)
.
3
8
8
8
;
;
;
 à`9-Ù…ÆCN,¾ ˜˜ÇÔÚ>¾Ü°¸ì½ù½ ½à`½:94
9 $*/à`# 
ìù (›5;ê³í³î³Òï³ìð³ñ³ò³ìäs{©¶ѼѼÒ¼ štÀ.  Á`Á`œÃ`è Á]Ä`bufÁÁ]Ê­\É:•àéþö$Å8
Ï8ü£8,$¶8¤¡M
(Œ¡M
ìú ³ML4ÝM
ÌËMŒËM
ì<$üM
úŠ PhantomDataÁÑ{·Ë…YÚ† † ˜NüºLÞ —N3½œãLú ÏL4ÕLíÑíÑ ManuallyDropÁïјãz.ý.yÂvúœíÑíѽïјãz.ý.yÂvcŒÐ Ç¤þ
Ô
£ Ä“UŒ“U
ì½,¥U%,âU\âU
îíÑíѽïјãz.ý.yÂv½XPT±dáU
î± làUÄÖULÖU
ãú*",ÇW dÇW
úÇ ) !ŒÂW
 õü¯W%”¯W
ñ
2 %,âW÷W ðWüâS•üƒUôüÊU§
ú „T½,ôSÇL‡Uú,ÎU ú, ú[ ±Í ½Ø Çóà
Þ õþ ½- ÇI¡{¡˜ÔwÁD¨ãÞµÒOúü¼Y$̼Y
ú ÖY4ÙY2âYüÞX„˜˜ÇÔÚ>¾ÜúÄ…Yú ñX4÷X¿Çµ×T®g±\­g¨'¾g)üŒg2ñŸg,•güd3¨kTÒh±\Ñh
ú±. âh.ü hB ú4»h®L­h ±q9´wüæj> Tüj±\ûj¨'dúj¼ðjLðjÞ$\•k õd”k
îõ -  !l“k
 ĉkL‰k
ã
*  #üïj3
 ,Õj
ú4Üj
|±kl±k

#
4Ïk
,Ök
lÏk
T
œ új1: ìk
$ 2:íkP  ¡k üÀi­~
Ž 
­
½ 
3jüÐjà
Òi®LÈiúúßúúºçÒñøüp Š º õÚà
®ô¾ú夘¢ÇN ¨ÞkÕ<Œ
ŽŠ(úŽôúúú°²m 
ü£m&d¥m
˜a £m:ü¥m$0<Ým
Ó"Tèm
±\çm¨
' dæm à`ü£mP,×m
ú]¾Dä×mü£mf4n
^RDnn8üäl« 
\m,ël òl î]î]ñ]ÍÖ]ò]Û
Ö]ó]
has_fieldsÁÖ]¢rC¢¹Ý#î”%%ŸÓ"ÀÓ"rí#3ñYüv¦þªÕé"ñ¨ñí#{$cÁ$3 9³Í0ÍÜ0Á]¢
\ò0¢
нd1íÑ,ª1ìDerefMutÁD±1ù ÷ Å1ê
Œ,±<üò…¡= @ p8¹lA O7https://docs.rs/scopeguard/1/ÁüQü:8ütEB A scope guard will run a given closure when it goes out of scope,Áüº$! even if the code between panics.Áüß$! (as long as panic doesn't abort)ÁËtˆ # ExamplesÁË”› ## Hello WorldÁ®Ëü²@= This example creates a scope guard with an example function:ÁóË ```Áäÿ extern crate scopeguard;ÁœËd  fn f() {Áü­0- let _guard = scopeguard::guard((), |_| {ÁüÞ*' println!("Hello Scope Exit!");Á\‰ });ÁËü™! // rest of the code here.Á»Ëü¿OL // Here, at the end of `_guard`'s scope, the guard's closure is called.ÁüMJ // It is also called if we exit this scope through unwinding instead.ÁŒã # fn main() {Á
# f();Á # }Á<ß*Ë|— ## `defer!`Á§Ëü«<9 Use the `defer` macro to run an operation at scope exit,Áüè?< either regular scope exit or during unwinding from a panic.Á¨Ëß*ü´0- #[macro_use(defer)] extern crate scopeguard;ÁåËÄé use std::cell::Cell;ÁË|† fn main() {Áü–QN // use a cell to observe drops during and after the scope guard is activeÁüè(% let drop_counter = Cell::new(0);ÁL ü› HE // Create a scope guard using `defer!` for the current scopeÁ¤ä  defer! {Áüù 96 drop_counter.set(1 + drop_counter.get());Á
Á
蟁
:7 // Do regular operations here in the meantime.Á Ëü„ 96 // Just before scope exit: it hasn't run yet.Áü¾ .+ assert_eq!(drop_counter.get(), 0);Áí Ëüñ KH // The following scope end is where the defer closure is calledÁ üÇ *' assert_eq!(drop_counter.get(), 1);Á ž. ß*
Ëì„
 ## Scope Guard with ValueÁ¢
Ëü¦