Files
boc/aamos-ledger-rust/target/debug/deps/libmatchers-61c2edb56d5dc561.rmeta
T

83 lines
22 KiB
Plaintext
Raw Normal View History

rust
W#rustc 1.96.0 (ac68faa20 2026-05-25)ÁÀ뉊]!ÜÛê(¹Þ—šên-5be7b69c3ff7b5b8ÁíàÄTËŸ ÜJîÄ)'ß\¥!-3d1337db07d0b3aeÁ¤²XctÔ'ÐÓ©z¨ɽÓ-a4945860e1c53b00Á¤°ð ¾ä-±($²ï=©Ã-7e98a21bfd32b0edÁòÖÀH•‘PIÓHã#£-055f30b747f859b6Árustc_std_workspace_coreÁ­Cçß^ò½èÝ$­Çÿ+Cé-c4878ee60b2242c9ÁŸÃï+Ñ]ŠqB<ÏïW#-8dd1dd90e70d0b6aÁ miniz_oxideÁ€š»J(P>àö÷g\K-1eb618da2918ab7fÁadler2ÁÆ;+Þ®5¥Ìýݰ¦ÛLˆ-f7919172d268e069Á hashbrownÁPäV9ÒÆèÜ"ÊÖVŽ\-0fc2184a5da6723aÁrustc_std_workspace_allocÁs&ØòØy¯s•bæ!‰ýŠ-97e4bf30be240674Á
std_detectÁhŠBîÙºÌI®ËÅš-9dbbf8346ba7ac8bÁrustc_demangleÁûë9´Ç×@Œ’ùXFº-f33013f239bf9f14Ácfg_ifÁÜLhž§Œaã¯>­-0a71c8f33a838301Á addr2lineÁ׎Þ!]8V$É@@-e618e6be60e87ba2ÁgimliÁ¸
°µ~Î1‹Ñt ðÁ€w-1f7768a68858f670ÁobjectÁ
áPÃ?­À¶¼QHJ¥-914cd6a4dbe590d1ÁmemchrÁ›º«8Ór­2Ù $¨ûib-cf21ca6f2bb15dcdÁë
‹ás«LÖ€îâƒ×ɯŒ-ee6f3747e38367f0Áregex_automataÁ¼I/TŽCî:KÚˆ"nª-2c4479749a2ad869Á regex_syntaxÁmÇå©™˜WgíÅ;ŒÀ-5c07677829e16c4fÁ$ÔW$ÉWÀ  æ   new_anchoredÁþmatcherÁmatchesÁimpl AsRef<str>Á
debug_matchesÁimpl fmt::DebugÁdisplay_matchesÁimpl fmt::DisplayÁ read_matchesÁ
impl io::ReadÁadvanceÁ
is_matchedÁÀ !Î ä #ø #Ž
&¤
&¼
)impl io::Read + SizedÁ++ñ..writeÁ.flushÁPatternÁ22 automatonÁ2anchoredÁ66×99ƒMatcherÁ<<¬ <º@@× CCƒ












!
#
&
-
-
0
0
1
8
8
8
;
B
B
B
E
¿c22 4¬ 5¼ P‡½Ïp¹tØ«¿c<<ï >¬ ?ºì« ÚˆÞqߨöïy22 4¬ 5¼ P‡½Ïp¹tööDFAÁø¯ùstÁúmsÁûspecialÁüaccelsÁýpreÁþquitsetÁÿflagsÁ+Á5“#0DªBªBö­BbufÁ÷<®B÷<9)
-ÜnLçEçEèEGlobalÁ ¿±‡§í#êböŸ!ö62@<92C<2+<.<¿c#Ø
ïy
êbŸ!2<À×ë
¤,ioÁð
¦FromStrÁ<ù
ïy
BuildErrorÁT¨ »üÔ ö AutomatonÁLò ø StateIDÁ<£ ÿ!
AnchoredÁDÀ ¸% ü–‘ü1. Regex matchers on character and byte streams.Á2ú|6 ## OverviewÁFúüJRO The [`regex`] crate implements regular expression matching on strings and byteÁüTQ arrays. However, in order to match the output of implementations of `fmt::Debug`ÁüòRO and `fmt::Display`, or by any code which writes to an instance of `fmt::Write`ÁüÅMJ or `io::Write`, it is necessary to first allocate a buffer, write to thatÁü“63 buffer, and then match the buffer against a regex.ÁÊúüÎVS In cases where it is not necessary to extract substrings, but only to test whetherÁü¥OL or not output matches a regex, it is not strictly necessary to allocate andÁüõSP write this output to a buffer. This crate provides a simple interface on top ofÁüÉOL the lower-level [`regex-automata`] library that implements `fmt::Write` andÁü™NK `io::Write` for regex patterns. This may be used to test whether streamingÁüè;8 output matches a pattern without buffering that output.Á¤úü¨OL Users who need to extract substrings based on a pattern or who already haveÁüøB? buffered data should probably use the [`regex`] crate instead.Á»úl¿
## SyntaxÁÍúüÑRO This crate uses the same [regex syntax][syntax] of the `regex-automata` crate.Á¤ úü¨ -* [`regex`]: https://crates.io/crates/regexÁüÖ ?< [`regex-automata`]: https://crates.io/crates/regex-automataÁü–
IF [syntax]: https://docs.rs/regex-automata/0.4.3/regex_automata/#syntaxÁ2<À!×"¤,ó¦ˆïy¢ »ü öÐø ìùÿ!
ð¸% ½ÀÃå
º½«®
üŒ &ü¸ }ôÝ hü )Vİ B¾
üî5üØIF Returns a new `Pattern` for the given regex, or an error if the regexÁ„¦
was invalid.Á»úüÃKH The returned `Pattern` will match occurances of the pattern which startÁü“MJ at *any* in a byte or character stream — the pattern may be preceded byÁüåIF any number of non-matching characters. Essentially, it will behave asÁü³GD though the regular expression started with a `.*?`, which enables aÁüÿFC match to appear anywhere. If this is not the desired behavior, useÁüÊ&# [`Pattern::new_anchored`] instead.Áõú„ý
For example:Á< ```ÁÔž use matchers::Pattern;Á½úüÅA> // This pattern matches any number of `a`s followed by a `b`.Áü‹EB let pattern = Pattern::new("a+b").expect("regex is not invalid");ÁÕúüÝKH // Of course, the pattern matches an input where the entire sequence ofÁü­&# // characters matches the pattern:ÁüØ0- assert!(pattern.display_matches(&"aaaaab"));Áúü•C@ // And, since the pattern is unanchored, it will also match theÁüÝ>; // sequence when it's followed by non-matching characters:Áü =: assert!(pattern.display_matches(&"hello world! aaaaab"));Áæ'õF FÖ¿Ù¿Ú¿«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
¾»»¢¼[)ûDVF  
patternÁ<ùü­%>ü¸JG Returns a new `Pattern` anchored at the beginning of the input stream,Áü‡)& or an error if the regex was invalid.Áµúü½KH The returned `Pattern` will *only* match an occurence of the pattern inÁüIF an input sequence if the first character or byte in the input matchesÁüÛJG the pattern. If this is not the desired behavior, use [`Pattern::new`]Á instead.Á»ú„ÃÍ'æ'Ôäö'ƒúü‹A¦(üÑ.+ let pattern = Pattern::new_anchored("a+b")Áü„ (% .expect("regex is not invalid");Á± úü¹ @= // The pattern matches an input where the entire sequence ofÁüþ &¡*ü©!0Ñ*Þ!úüæ!GD // Since the pattern is anchored, it will *not* match an input thatÁü²"+( // begins with non-matching characters:Áüâ">; assert!(!pattern.display_matches(&"hello world! aaaaab"));Á¥#úü­#HE // ...however, if we create a pattern beginning with `.*?`, it will:Áüú#2/ let pattern2 = Pattern::new_anchored(".*?a+b")Áü±$(ô2üÞ$>; assert!(pattern2.display_matches(&"hello world! aaaaab"));Á<¡%æ'd´%G Gœ.  Ê%
².<Á%Äÿ&¾ðyñyDž'£'í.ü¹'/D¼'H HÖ¿Ù¿Ú¿«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
¾¾ðy È'
¾ Å'ì‰(Íìß Ž(øßL‘(« "ü¢*'ü­()& Obtains a `matcher` for this pattern.ÁÛ(úüã(KH This conversion is useful when wanting to incrementally feed input (viaÁü³)YV `io::Write`/`fmt::Write` to a matcher). Otherwise, the convenience methods on PatternÁd* suffice.Á<©*I <<ï >¬ ?ºì« ÚˆÞq  ±*
ß$²*ü„-2üµ,<9 Returns `true` if this pattern matches the given string.Á<-JK  KÎ Î  “-Íì÷?|ž-à÷?T£-
ß÷?$”-¾ š-.0üå38üæ-LI Returns `true` if this pattern matches the formatted output of the givenÁü·.# type implementing `fmt::Debug`.Áß.ú„ç.Í'\ü. ```rustÁÔŒ/ö'«/ú¤³/ #[derive(Debug)]Á´Ì/ pub struct Hello {ÁÌç/ to: &'static str,Á,…00ú
¤
 ò<ÍìâOŒý<ÄcâOd=
ßâO$ó<¯ ù<,.ü¯?AüÏ=NK Returns either a `bool` indicating whether or not this pattern matches theÁü¢>JG data read from the provided `io::Read` stream, or an `io::Error` if anÁüñ>+( error occurred reading from the stream.Ád¶?P Ï
Ö¿Ù¿Ú¿«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
ßßErrorÁà ¬
ÑøÿËO ŸÏ
 Ã?ÍìßRlÎ?à ßRDÓ?
ßßR$Ä?óÊ?,.ü½@*¢; Â@²;LÝ@ö !#&)üü@ <ÿ@Q  ‡A
ß$ŒAinputÁ,Aü­D üÀCHE Returns `true` if this `Matcher` has matched any input that has beenÁlD
provided.ÁT´DR  ¿D
ß$ÀDüÈF5üÏELõ?ü F#Ë@<ÏFSö S÷?Î "" äFŸ@|åF¯@TêF
!ß÷?$ÛF¾ áF$&üÛI;üâHLõ?ü³I#Ë@lâITö TÏGø $$ ýI÷G|þI‡HTƒJ
#ßÏG$ôI¯ úI$&|¥J,¯Jü©L?ü®KLõ?üÿK%ØG|°LUö UâO¤
'' ÍLŠPŒÎLšPdÓL
&ßâO$ÄL¯ ÊL$&|÷L,MüÐOLüþMNÞOüÑNJ¶Pü O+ŠQd×OöÆ äRÆ **Íìé[,‚Pà é[D÷O
)ßé[$èOóîO¬òOüöQ,,,¢; ûQ²;LþQö-ëb-ü©R/L¬RVW  WÖ¿Ù¿Ú¿«Û¿ˆÜ¿Ý¿Þ¿ˆ‚†f|Â
ÃUŸÈŸÈ È¾R O˜éBL+ ¶R+