Files
boc/rust-service/target/debug/deps/libzerofrom-dcafde80b60b6e04.rmeta
T

223 lines
52 KiB
Plaintext
Raw Normal View History

rust
#rustc 1.96.0 (ac68faa20 2026-05-25)ֱםאִTֻ Jמִ)'\¥!-3d1337db07d0b3aeֱzerofrom_deriveֱ¨ 8ןlּfOµ— ˆ´-2ea7b665324646a9ֱ°נ ¾ה-±($²ן=©ֳ-7e98a21bfd32b0edֱ»ֹo»סToOwnedֱ<»»®ם macro_implsֱimpl_copy_typeֱ
array_zf_implֱ
tuple_zf_implֱ zero_fromֱZeroFromֱ
'zfֱ

¥ ¥¥¥%'aֱ%(ֹ(+ֹ+.ֹ.1ֹ14ֹ47ֹ7:ֹ:=ֹ= @ֹ@
CֹC FֹF IֹI
LֹLOֹOO¥O O OU WֹWW¥W W W] _ֹ__¥_ _ _e gֹgg¥g g gm oֹoo¥o o ou wֹww¥w w w} ֹ¥   ֹ¥   ֹ¥   ֹ¥   ֹ¥  ¥ §ֹ§§¥§ § §­ ¯ֹ¯¯¥¯ ¯ ¯µ ·ֹ··¥· · ·½ ¿ֹ¿¿¥¿ ¿ ¿ֵ ַַַֹ¥ַ ַ ַֽ ֿֿC1ֱֿT1ֱֿC2ֱֿT2ֱֿײײ׀ ײ ײה ײמ ײC3ֱײT3ֱײ ׀  ה מ ¬

C4ֱT4ֱ!ךך׀ ך ךה ךמ ך¬
ך
ךךךC5ֱךT5ֱך"קק׀ ק קה קמ ק¬
ק
קקקלקצקC6ֱקT6ֱק#׀  ה מ ¬

לצהמC7ֱT7ֱ$׀  ה מ ¬

לצהמלצC8ֱT8ֱ%××׀ × ×ה ×מ ׬
×
×××ל×צ×ה×מ×ל×צ×××C9ֱ×T9ֱ×&¿¿׀ ¿ ¿ה ¿מ ¿¬
¿
¿¿¿ל¿צ¿ה¿מ¿ל¿צ¿¿¿¬¿¿C10ֱ¿T10ֱ¿

ֹ
ֹ
ֹ®
ְֹ
ֹׂ
ֹה
ֹצ
ֹˆ
ֹ
ֹ¬
ֹ¾
ֹ׀
ֹ
ֹ
¥הֹה
ƒהֹה
ƒהֹה
ƒהֹה
ƒהֹה
ƒהֹה
ƒהֹה
ƒהֹה
ƒה ֹה 
ƒה
ֹה

ƒה ֹה 
ƒה ֹה 
ƒה
ֹה

ƒהֹה
ƒהֹה
ƒהֹה
 מ ׀ ה 
ךן
¬

ךן¦
ךן÷
צ¦־ ל
ךן÷ה מ¦־ת ה
ךן÷הצ¦־ת×
ל
ךן÷הִ¦־ת×
 ךן÷הִת¦־ת׬

ךן÷הִת´ ן
¦־ת×– ׂ ה
 
¼¼¼©¼א¼ב¼ˆcSס«‡zƒ¼¼¼©¼א¼ב¼ˆcSס«‡z
 ƒ 
 
¥צ"
 PhantomDataֱFuק"#%(+.147:=@CFILOW_gow§¯·¿ַֿ
ײ

ך
ק


×
¿

¼


הההההההההההההההההההההההה ה ה ה
ה10ֱ
ה10ֱ
ה10ֱ ה11ֱ ה11ֱ ה11ֱ ה12ֱ ה12ֱ ה12ֱ
ה13ֱ
ה13ֱ
ה13ֱה14ֱה14ֱה14ֱה15ֱה15ֱה15ֱה16ֱה16ֱה16ֱם
$4#²ֳVS This crate provides [`ZeroFrom`], a trait for converting types in a zero-copy way.ֱםתס;8 See the documentation of [`ZeroFrom`] for more details.ֱםםם
$4#
$4#|׀*ג  ˆ  , 8´& ˆ8¼,‰*  8$ ¡:ֹ¢ 8 ®:ֹ¯$ ±, ³8´´ 8
¸, ¼8´½ ְ + ־ ֿ ײ88 ה8 נ 8thisֱ$ס& ץ ק:ֹר8$(8$„  ץ
ד8ב0% װ÷ ױ ­   ס , 8¹ & 8$% ד, ו ז מ, ח8´ ט& י8$ ן נ*ף צ « 8$€  :ֹ$ 8 $ 8¥ & 8D  :ֹ˜ $ 8  8D   ¨ :ֹ© $ «  ­  ³ 8 ® % ¯ , ± 8¹ ²  ´ 8
 ÷  ְ 8¥ » % ¼ , ¾ 8¹ ¿  ֲ  ¥ 8 ׀ 8L׃   מ 8ב0$ & ב  ד :ֹה  ח  ם 8 ט % י , כ 8¹ ל (נ 8 ר  
 ,  
 ¡
 ר

 »
8¥ ¼
8¾
8
 ֹ
8 ֺ
ֻ
'ֽ
8Lֿ
 ״
 ג

8ב0$

 ב
,
8´ א
$ ש
 ת
װ• °   ׳, · ¸ װ ¹ ׃, ÷8® »& ¼8¼$ ֲ, ִ8¿ ֵ& ֶ8¼$ ּ, ־8´ ֿ& ׀8¯ׁ$ ױ ײ*  8 ך:כ$ מ, נ ס 
, ע8® ף$ פ, צ8¿ ק& ר8 :ƒ$ , ˆ8®  $   8D ˜:$   ¦,    £, ¡8® ¢$  ¥ §8
µ ¹ ֱ, ÷ » ¾, ¼8¿ ½$ ¿ ְ ֿ 8 8 י 8¹
& ן ס:ע צ , ק ר , ש8® ת$  (8$„    ס, ± ²   ³, ´8¿ µ8·8 ֲ, ֳ8® ִֵ'ַ8 ׂ  ׃8¹
 , 8´ $  % L‡
"\ "  ּֿ'ן'eb Trait for types that can be created from a reference to a different type `C` with no allocations,ֱִ30 i.e. a zero-copy (zero-alloc) version of "From"ֱרת@= A type can be the `ZeroFrom` target of multiple other types.ֱ½תֱ[X The intention is for `ZeroFrom` to produce a struct from a other with as little work asֱWT possible. Although it is technically possible to implement `ZeroFrom` without beingֱץSP zero-copy (using heap allocations), doing so defeats the purpose of `ZeroFrom`.ֱֹתֽ\Y For example, `impl ZeroFrom<C> for Cow<str>` should return a `Cow::Borrowed` pointing atֱ×MJ data in the other type `C`, even if the other type is itself fully owned.ֱרתeb One can use the [`#[derive(ZeroFrom)]`](zerofrom_derive::ZeroFrom) custom derive to automaticallyֱּג implement this trait.ֱתt€  # Examplesֱ ת“ 41 Implementing `ZeroFrom` on a custom data struct:ֱָ ת ```ֱּװ  use std::borrow::Cow;ֱמ  use zerofrom::ZeroFrom;ֱ
תה
 struct MyStruct<'data> {ֱ«
! message: Cow<'data, str>,ֱ
׃
ת׳
0- // Reference from a borrowed version of selfֱˆ =: impl<'zf> ZeroFrom<'zf, MyStruct<'_>> for MyStruct<'zf> {ֱֶ 85 fn zero_from(other: &'zf MyStruct<'_>) -> Self {ֱ´  MyStruct {ֱ 74 message: Cow::Borrowed(&other.message),ֱ 
L  ¼Iל תנ -* // Reference from a string slice directlyֱ
41 impl<'zf> ZeroFrom<'zf, str> for MyStruct<'zf> {ֱ׃
/, fn zero_from(other: &'zf str) -> Self {ֱ´ƒ™K.+ message: Cow::Borrowed(other),ֱשKL׳L¼IH
  
 ־לן£P־ל 
…P9™P.…PC™P8

46ל$JG Clone the other `C` into a struct that may retain references into `C`.ֱLן ¯PP

P¯P¹
¢)!
§א%!!
¹
¼H¥ֽל ֶֽלƒ ֹ
ƒ„ּµ!
ֱ<>9;+L ƒ"µ!
ƒ¹
װ<closure_kind>ֱ<closure_signature>ֱ<upvars>ֱƒ ƒ˜48ײ¥ײ־לƒ ¢ׁ"
ב)׳  ׳ƒׁ"
8ƒ¹
,¥ֽלק" ®נ"
©ו)נ"נ"
ק"¹
¨ K ¥!! ־לק" ² ק"¾ #"
"­ #% ת 0L  ##
"ק"¹
,‡!ּ¶נװר"ֹ&&'
'¢רה$Hח ֹ%%
'ֹב0 סר"ֹ))*
*¢רה$Hח ֹ((
*ֹב0 סר"ֹ,,®-
-¢רה$Hח ֹ®®++
-ֹב0 סר"ֹ//ְ0
0¢רה$Hח ְְֹ..
0ֹב0 סר"ֹ22ׂ3
3¢רה$Hח ֹׂׂ11
3ֹב0 סר"ֹ55ה6
6¢רה$Hח ֹהה44
6ֹב0 סר "ֹ88צ9
9 ¢ר ה$H ח ֹצצ77
9ֹב0 סר
" ֹ;;ˆ<
<
¢ר
ה$H
ח ֹˆˆ::
<ֹב0
סר "
ֹ>>?
? ¢ר ה$H ח ֹ==
?ֹב0 סר " ֹAA¬B
B ¢ר ה$H ח ֹ¬¬@@
Bֹב0 סר
" ֹDD¾E
E
¢ר
ה$H
ח ֹ¾¾CC
Eֹב0
סר"
ֹGG׀H
H¢רה$Hח ֹ׀׀FF
Hֹב0 סר"ֹJJK
K¢רה$Hח ֹII
Kֹב0 סר"ֹMMN
N¢רה$Hח ֹLL
Nֹב0 סר€ AֹPQ¥RPQRֳS׃S 
ƒֹx U
U79<> ¿ ההר׀ 'H׃  ֹOO
Uֹƒב0  sהר€ AֹXY¥ZXYZֳS׃S »hx ]
]'),. ױ ההר׀ 'H׃  ֹֽWW
]ֹƒב0  sהר€ Aֹ`a¥bba`ֳS׃S »hx הe
e'),. מ ההר׀ 'H׃  ֹה__
eֹƒב0  sהר€ Aֹhi¥jhijֳS׃S »hx m
m'),. ההר׀ 'H׃  ֹ©gg
mֹƒב0  sהר€ Aֹpq¥rpqrֳS׃S »hx ְu
u'),. © ההר׀ 'H׃  ֹ׳ְoo
uֹƒב0  sהר€ Aֹxy¥zzyxֳS׃S »hx מ}
}'),. ֻ ההר׀ 'H׃  ֹמww