Files
archy/core/target/debug/deps/libutf8_iter-d669afc8201562ee.rmeta
T

97 lines
25 KiB
Plaintext
Raw Normal View History

2026-01-24 22:59:20 +00:00
rust
úb#rustc 1.93.0 (254b59607 2026-01-19)Á³VOÐêùÿ²?ÑL¼§Ì±-a7a40eb546f9e2b0Áë&Gf·Ã ¬ëñq:¤»b-bb76018b1173caf6ÁtestsÁ,Œ>à$>³indicesÁ'aÁ½¥ à size_hintÁ¸ 
Î
 next_backÁ Î as_sliceÁÐ reportÁÍÎ ¸
next_fallbackÁ#Î#½#¥ 'Î'ŽUtf8DataÁ/tableÁ0  UTF8_DATAÁin_inclusive_range8Á4Î4 4¸49Î9½9¥ =Î=Ž Utf8CharsExÁAcharsÁA char_indicesÁDŒD˜Utf8CharIndicesÁGÎG front_offsetÁG£ KÎKÈNÎNÍUtf8CharsErrorÁQ
SÍVÕErrorReportingUtf8CharsÁXÎX remainingÁ[Î[Í ^Î^È Utf8CharsÁaÎaðdÎdÍgÎgÈ








!
"
&
)
*
7
8
<
?
@
B
C
E
F
M
P
P
P
T
T
T
W
W
]
]
]
`
f
f
f
i
AÞGG½IÚJ£ H©zÅ9 µÎà`ˆ
ÞKˆ
òJˆ
ÖNGG½IÚJ£ H©zÅ9 µ8à`QQR˜ À¤”Ÿ7¹A¬â¥ ž¥ ¥ å`¥ à`XXËZðݽèÙ?
SÎÞð ÞKð òJð ÖNXXËZðݽèÙ?
S8à`aa¤cð=d=úQz2vÎÞù ÞKù òJù ÖNaa¤cð=d=úQz2v8A
KG^XgaNGSQ[XdaG#X9a
G'X=aG*X@aUQVQQD Þbà`ÞKòJÖN¬âžå`A384Á/23Aa³½ G+˼â X,˜t’ Q-˜R-£ ÖN.ü¯ÓOü»LI Provides iteration by `char` over `&[u8]` containing potentially-invalidÁüˆHE UTF-8 such that errors are handled according to the [WHATWG EncodingÁüÑMJ Standard](https://encoding.spec.whatwg.org/#utf-8-decoder) (i.e. the sameÁüŸ)& way as in `String::from_utf8_lossy`).ÁÉËüÍHE The trait `Utf8CharsEx` provides the convenience method `chars()` onÁü–DA byte slices themselves instead of having to use the more verboseÁäÛ `Utf8Chars::new(slice)`.ÁøË ```rustÁüˆ  use utf8_iter::Utf8CharsEx;Áü¨ KH let data = b"\xFF\xC2\xE2\xE2\x98\xF0\xF0\x9F\xF0\x9F\x92\xE2\x98\x83";Áüô 30 let from_iter: String = data.chars().collect();Áü¨
1. let from_std = String::from_utf8_lossy(data);ÁüÚ
$! assert_eq!(from_iter, from_std);Á<ÿ
 ```Á/23Aa³¼½½G+˼X,˜»Q-˜ÊR-£»ÖN."\ˆ  G¤a£lÖN„î&Ì„ü‰
)Έ

ßKàKåKäKçK
Ž


¡üç
+
j jˆ
ø°ú°û°Ðü°ý°þ°ìHˈXêE>û ï

Î
¼þ
,ˆ
¡
Î$‡üË-k kˆ
¡ø°ú°û°Ðü°ý°þ°ìHˈXêE>¡ Ø
Îü²*ˆ
®
Îüµ4Έ
óJºüþ0Ll lˆ
®
 
Î$<closure_kind>Á<closure_signature>Á<upvars>Áû GG½IÚJ£ H©zÅ9 µüÉ*8mmæ
äøÎˆ
ýüá#ü±+( Creates the iterator from a byte slice.Áè Έ

ÎbytesÁ,ìüï"ü‚A> Views the underlying data as a subslice of the original data.ÁÈËüÐ@= This has the same lifetime as the original slice, and so theÁü•74 iterator can continue to be used while this exists.Á,\Ñn nˆ
 ÿ
Î$€ì—ü¼B? Returns the byte position of the next character, or the lengthÁüƒ=: of the underlying string if there are no more characters.ÁÅË # ExamplesÁàËßüôÁü˜52 let mut chars = "a楽".as_bytes().char_indices();ÁÒËüÚ" assert_eq!(chars.offset(), 0);Áü-* assert_eq!(chars.next(), Some((0, 'a')));Á³Ëü»" assert_eq!(chars.offset(), 1);Áüâ/, assert_eq!(chars.next(), Some((1, '楽')));ÁËüž" assert_eq!(chars.offset(), 4);ÁüÅ# assert_eq!(chars.next(), None);Áß,\‡o oˆ
¡ ¥
ÎT• 4™ XQRœº 32œÁ`£lÖNÔ³N„ÓB¤é3̃&üÕ*¥ æ`ü† Dpqr  qÁ`Á`œÃ`è Á]Ä`bufÁÁ]Ê­\É:•rê³í³î³Òï³ìð³ñ³ò³ìäs{©¶ѼѼÒ¼ štÀ. 
þ üÇ$Îð !"Ìü¸#üˆ+Ç¿‹ ð 
αü "ü¤B? Views the current remaining data in the iterator as a subsliceÁÔë of the original slice.ÁD§s   °
!ÎüüClÿt  ø°ú°û°Ðü°ý°þ°ìHˈXêE>ê³í³î³Òï³ìð³ñ³ò³ìäs{©¶¥  
"Î$üÍ"1Î$$ð %&ßKàK&Ò"L…#$Š###ƒ/üÂ#:$Å#u  ¿.# Ê##
&Î$Ï#ü™6<Î((ð )óJ)ž6üê6?Lí6v  ¿.' ÷6'
)Î$ü6üÄ=28wwÄ üª FüÓ &Vìƒ f̦ ˆ  //â0ñ ¸2W] ¸2W]0¤ƒ
,‡