mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-23 00:18:24 +00:00
5 lines
11 KiB
HTML
5 lines
11 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Character specific parsers and combinators"><title>winnow::ascii - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="winnow" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0 (051478957 2024-07-21)" data-channel="1.80.0" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../winnow/index.html">winnow</a><span class="version">0.6.18</span></h2></div><h2 class="location"><a href="#">Module ascii</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate winnow</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">winnow</a>::<wbr><a class="mod" href="#">ascii</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/winnow/ascii/mod.rs.html#1-1895">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Character specific parsers and combinators</p>
|
|
<p>Functions recognizing specific characters</p>
|
|
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Caseless.html" title="struct winnow::ascii::Caseless">Caseless</a></div><div class="desc docblock-short">Mark a value as case-insensitive for ASCII characters</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.HexUint.html" title="trait winnow::ascii::HexUint">HexUint</a></div><div class="desc docblock-short">Metadata for parsing hex numbers, see <a href="fn.hex_uint.html" title="fn winnow::ascii::hex_uint"><code>hex_uint</code></a></div></li><li><div class="item-name"><a class="trait" href="trait.Int.html" title="trait winnow::ascii::Int">Int</a></div><div class="desc docblock-short">Metadata for parsing signed integers, see <a href="fn.dec_int.html" title="fn winnow::ascii::dec_int"><code>dec_int</code></a></div></li><li><div class="item-name"><a class="trait" href="trait.Uint.html" title="trait winnow::ascii::Uint">Uint</a></div><div class="desc docblock-short">Metadata for parsing unsigned integers, see <a href="fn.dec_uint.html" title="fn winnow::ascii::dec_uint"><code>dec_uint</code></a></div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.alpha0.html" title="fn winnow::ascii::alpha0">alpha0</a></div><div class="desc docblock-short">Recognizes zero or more lowercase and uppercase ASCII alphabetic characters: <code>'a'..='z'</code>, <code>'A'..='Z'</code></div></li><li><div class="item-name"><a class="fn" href="fn.alpha1.html" title="fn winnow::ascii::alpha1">alpha1</a></div><div class="desc docblock-short">Recognizes one or more lowercase and uppercase ASCII alphabetic characters: <code>'a'..='z'</code>, <code>'A'..='Z'</code></div></li><li><div class="item-name"><a class="fn" href="fn.alphanumeric0.html" title="fn winnow::ascii::alphanumeric0">alphanumeric0</a></div><div class="desc docblock-short">Recognizes zero or more ASCII numerical and alphabetic characters: <code>'a'..='z'</code>, <code>'A'..='Z'</code>, <code>'0'..='9'</code></div></li><li><div class="item-name"><a class="fn" href="fn.alphanumeric1.html" title="fn winnow::ascii::alphanumeric1">alphanumeric1</a></div><div class="desc docblock-short">Recognizes one or more ASCII numerical and alphabetic characters: <code>'a'..='z'</code>, <code>'A'..='Z'</code>, <code>'0'..='9'</code></div></li><li><div class="item-name"><a class="fn" href="fn.crlf.html" title="fn winnow::ascii::crlf">crlf</a></div><div class="desc docblock-short">Recognizes the string <code>"\r\n"</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.dec_int.html" title="fn winnow::ascii::dec_int">dec_int</a></div><div class="desc docblock-short">Decode a decimal signed integer (e.g. <a href="https://doc.rust-lang.org/1.80.0/std/primitive.i32.html" title="primitive i32"><code>i32</code></a>)</div></li><li><div class="item-name"><a class="fn" href="fn.dec_uint.html" title="fn winnow::ascii::dec_uint">dec_uint</a></div><div class="desc docblock-short">Decode a decimal unsigned integer (e.g. <a href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html" title="primitive u32"><code>u32</code></a>)</div></li><li><div class="item-name"><a class="fn" href="fn.digit0.html" title="fn winnow::ascii::digit0">digit0</a></div><div class="desc docblock-short">Recognizes zero or more ASCII numerical characters: <code>'0'..='9'</code></div></li><li><div class="item-name"><a class="fn" href="fn.digit1.html" title="fn winnow::ascii::digit1">digit1</a></div><div class="desc docblock-short">Recognizes one or more ASCII numerical characters: <code>'0'..='9'</code></div></li><li><div class="item-name"><a class="fn" href="fn.escaped.html" title="fn winnow::ascii::escaped">escaped</a><span class="stab deprecated" title="">Deprecated</span></div><div class="desc docblock-short">Deprecated, replaced with <a href="fn.take_escaped.html" title="fn winnow::ascii::take_escaped"><code>take_escaped</code></a></div></li><li><div class="item-name"><a class="fn" href="fn.escaped_transform.html" title="fn winnow::ascii::escaped_transform">escaped_transform</a></div><div class="desc docblock-short">Parse escaped characters, unescaping them</div></li><li><div class="item-name"><a class="fn" href="fn.float.html" title="fn winnow::ascii::float">float</a></div><div class="desc docblock-short">Recognizes floating point number in text format and returns a <a href="https://doc.rust-lang.org/1.80.0/std/primitive.f32.html" title="primitive f32"><code>f32</code></a> or <a href="https://doc.rust-lang.org/1.80.0/std/primitive.f64.html" title="primitive f64"><code>f64</code></a>.</div></li><li><div class="item-name"><a class="fn" href="fn.hex_digit0.html" title="fn winnow::ascii::hex_digit0">hex_digit0</a></div><div class="desc docblock-short">Recognizes zero or more ASCII hexadecimal numerical characters: <code>'0'..='9'</code>, <code>'A'..='F'</code>,
|
|
<code>'a'..='f'</code></div></li><li><div class="item-name"><a class="fn" href="fn.hex_digit1.html" title="fn winnow::ascii::hex_digit1">hex_digit1</a></div><div class="desc docblock-short">Recognizes one or more ASCII hexadecimal numerical characters: <code>'0'..='9'</code>, <code>'A'..='F'</code>,
|
|
<code>'a'..='f'</code></div></li><li><div class="item-name"><a class="fn" href="fn.hex_uint.html" title="fn winnow::ascii::hex_uint">hex_uint</a></div><div class="desc docblock-short">Decode a variable-width hexadecimal integer (e.g. <a href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html" title="primitive u32"><code>u32</code></a>)</div></li><li><div class="item-name"><a class="fn" href="fn.line_ending.html" title="fn winnow::ascii::line_ending">line_ending</a></div><div class="desc docblock-short">Recognizes an end of line (both <code>"\n"</code> and <code>"\r\n"</code>).</div></li><li><div class="item-name"><a class="fn" href="fn.multispace0.html" title="fn winnow::ascii::multispace0">multispace0</a></div><div class="desc docblock-short">Recognizes zero or more spaces, tabs, carriage returns and line feeds.</div></li><li><div class="item-name"><a class="fn" href="fn.multispace1.html" title="fn winnow::ascii::multispace1">multispace1</a></div><div class="desc docblock-short">Recognizes one or more spaces, tabs, carriage returns and line feeds.</div></li><li><div class="item-name"><a class="fn" href="fn.newline.html" title="fn winnow::ascii::newline">newline</a></div><div class="desc docblock-short">Matches a newline character <code>'\n'</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.oct_digit0.html" title="fn winnow::ascii::oct_digit0">oct_digit0</a></div><div class="desc docblock-short">Recognizes zero or more octal characters: <code>'0'..='7'</code></div></li><li><div class="item-name"><a class="fn" href="fn.oct_digit1.html" title="fn winnow::ascii::oct_digit1">oct_digit1</a></div><div class="desc docblock-short">Recognizes one or more octal characters: <code>'0'..='7'</code></div></li><li><div class="item-name"><a class="fn" href="fn.space0.html" title="fn winnow::ascii::space0">space0</a></div><div class="desc docblock-short">Recognizes zero or more spaces and tabs.</div></li><li><div class="item-name"><a class="fn" href="fn.space1.html" title="fn winnow::ascii::space1">space1</a></div><div class="desc docblock-short">Recognizes one or more spaces and tabs.</div></li><li><div class="item-name"><a class="fn" href="fn.tab.html" title="fn winnow::ascii::tab">tab</a></div><div class="desc docblock-short">Matches a tab character <code>'\t'</code>.</div></li><li><div class="item-name"><a class="fn" href="fn.take_escaped.html" title="fn winnow::ascii::take_escaped">take_escaped</a></div><div class="desc docblock-short">Recognize the input slice with escaped characters.</div></li><li><div class="item-name"><a class="fn" href="fn.till_line_ending.html" title="fn winnow::ascii::till_line_ending">till_line_ending</a></div><div class="desc docblock-short">Recognizes a string of any char except <code>"\r\n"</code> or <code>"\n"</code>.</div></li></ul></section></div></main></body></html> |