Now a REAL lib
This commit is contained in:
1
doc/nom/all.html
Normal file
1
doc/nom/all.html
Normal file
File diff suppressed because one or more lines are too long
10
doc/nom/bits/complete/fn.bool.html
Normal file
10
doc/nom/bits/complete/fn.bool.html
Normal file
File diff suppressed because one or more lines are too long
2
doc/nom/bits/complete/fn.tag.html
Normal file
2
doc/nom/bits/complete/fn.tag.html
Normal file
File diff suppressed because one or more lines are too long
19
doc/nom/bits/complete/fn.take.html
Normal file
19
doc/nom/bits/complete/fn.take.html
Normal file
File diff suppressed because one or more lines are too long
5
doc/nom/bits/complete/index.html
Normal file
5
doc/nom/bits/complete/index.html
Normal file
@ -0,0 +1,5 @@
|
||||
<!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="Bit level parsers"><meta name="keywords" content="rust, rustlang, rust-lang, complete"><title>nom::bits::complete - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">☰</button><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module complete</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../nom/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">nom</a>::<wbr><a href="../index.html">bits</a>::<wbr><a class="mod" href="#">complete</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/nom/bits/complete.rs.html#1-197">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Bit level parsers</p>
|
||||
</div></details><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.bool.html" title="nom::bits::complete::bool fn">bool</a></div><div class="item-right docblock-short"><p>Parses one specific bit as a bool.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.tag.html" title="nom::bits::complete::tag fn">tag</a></div><div class="item-right docblock-short"><p>Generates a parser taking <code>count</code> bits and comparing them to <code>pattern</code></p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take.html" title="nom::bits::complete::take fn">take</a></div><div class="item-right docblock-short"><p>Generates a parser taking <code>count</code> bits</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/bits/complete/sidebar-items.js
Normal file
1
doc/nom/bits/complete/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":[["bool","Parses one specific bit as a bool."],["tag","Generates a parser taking `count` bits and comparing them to `pattern`"],["take","Generates a parser taking `count` bits"]]};
|
25
doc/nom/bits/fn.bits.html
Normal file
25
doc/nom/bits/fn.bits.html
Normal file
File diff suppressed because one or more lines are too long
23
doc/nom/bits/fn.bytes.html
Normal file
23
doc/nom/bits/fn.bytes.html
Normal file
File diff suppressed because one or more lines are too long
7
doc/nom/bits/index.html
Normal file
7
doc/nom/bits/index.html
Normal file
@ -0,0 +1,7 @@
|
||||
<!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="Bit level parsers"><meta name="keywords" content="rust, rustlang, rust-lang, bits"><title>nom::bits - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module bits</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#modules">Modules</a></li><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">nom</a>::<wbr><a class="mod" href="#">bits</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/bits/mod.rs.html#1-179">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Bit level parsers</p>
|
||||
</div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="complete/index.html" title="nom::bits::complete mod">complete</a></div><div class="item-right docblock-short"><p>Bit level parsers</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="streaming/index.html" title="nom::bits::streaming mod">streaming</a></div><div class="item-right docblock-short"><p>Bit level parsers</p>
|
||||
</div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.bits.html" title="nom::bits::bits fn">bits</a></div><div class="item-right docblock-short"><p>Converts a byte-level input to a bit-level input, for consumption by a parser that uses bits.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.bytes.html" title="nom::bits::bytes fn">bytes</a></div><div class="item-right docblock-short"><p>Counterpart to <code>bits</code>, <code>bytes</code> transforms its bit stream input into a byte slice for the underlying
|
||||
parser, allowing byte-slice parsers to work on bit streams.</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/bits/sidebar-items.js
Normal file
1
doc/nom/bits/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":[["bits","Converts a byte-level input to a bit-level input, for consumption by a parser that uses bits."],["bytes","Counterpart to `bits`, `bytes` transforms its bit stream input into a byte slice for the underlying parser, allowing byte-slice parsers to work on bit streams."]],"mod":[["complete","Bit level parsers"],["streaming","Bit level parsers"]]};
|
10
doc/nom/bits/streaming/fn.bool.html
Normal file
10
doc/nom/bits/streaming/fn.bool.html
Normal file
File diff suppressed because one or more lines are too long
2
doc/nom/bits/streaming/fn.tag.html
Normal file
2
doc/nom/bits/streaming/fn.tag.html
Normal file
File diff suppressed because one or more lines are too long
2
doc/nom/bits/streaming/fn.take.html
Normal file
2
doc/nom/bits/streaming/fn.take.html
Normal file
File diff suppressed because one or more lines are too long
5
doc/nom/bits/streaming/index.html
Normal file
5
doc/nom/bits/streaming/index.html
Normal file
@ -0,0 +1,5 @@
|
||||
<!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="Bit level parsers"><meta name="keywords" content="rust, rustlang, rust-lang, streaming"><title>nom::bits::streaming - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">☰</button><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module streaming</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../nom/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">nom</a>::<wbr><a href="../index.html">bits</a>::<wbr><a class="mod" href="#">streaming</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/nom/bits/streaming.rs.html#1-170">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Bit level parsers</p>
|
||||
</div></details><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.bool.html" title="nom::bits::streaming::bool fn">bool</a></div><div class="item-right docblock-short"><p>Parses one specific bit as a bool.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.tag.html" title="nom::bits::streaming::tag fn">tag</a></div><div class="item-right docblock-short"><p>Generates a parser taking <code>count</code> bits and comparing them to <code>pattern</code></p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take.html" title="nom::bits::streaming::take fn">take</a></div><div class="item-right docblock-short"><p>Generates a parser taking <code>count</code> bits</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/bits/streaming/sidebar-items.js
Normal file
1
doc/nom/bits/streaming/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":[["bool","Parses one specific bit as a bool."],["tag","Generates a parser taking `count` bits and comparing them to `pattern`"],["take","Generates a parser taking `count` bits"]]};
|
22
doc/nom/branch/fn.alt.html
Normal file
22
doc/nom/branch/fn.alt.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!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="Tests a list of parsers one by one until one succeeds."><meta name="keywords" content="rust, rustlang, rust-lang, alt"><title>alt in nom::branch - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::branch</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">branch</a>::<wbr><a class="fn" href="#">alt</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/branch/mod.rs.html#47-51">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn alt<I: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, O, E: <a class="trait" href="../error/trait.ParseError.html" title="trait nom::error::ParseError">ParseError</a><I>, List: <a class="trait" href="trait.Alt.html" title="trait nom::branch::Alt">Alt</a><I, O, E>>(<br> l: List<br>) -> impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(I) -> <a class="type" href="../type.IResult.html" title="type nom::IResult">IResult</a><I, O, E></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tests a list of parsers one by one until one succeeds.</p>
|
||||
<p>It takes as argument a tuple of parsers. There is a maximum of 21
|
||||
parsers. If you need more, it is possible to nest them in other <code>alt</code> calls,
|
||||
like this: <code>alt(parser_a, alt(parser_b, parser_c))</code></p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">nom::character::complete</span>::{<span class="ident">alpha1</span>, <span class="ident">digit1</span>};
|
||||
<span class="kw">use</span> <span class="ident">nom::branch::alt</span>;
|
||||
<span class="kw">fn</span> <span class="ident">parser</span>(<span class="ident">input</span>: <span class="kw-2">&</span><span class="ident">str</span>) -> <span class="ident">IResult</span><span class="op"><</span><span class="kw-2">&</span><span class="ident">str</span>, <span class="kw-2">&</span><span class="ident">str</span><span class="op">></span> {
|
||||
<span class="ident">alt</span>((<span class="ident">alpha1</span>, <span class="ident">digit1</span>))(<span class="ident">input</span>)
|
||||
};
|
||||
|
||||
<span class="comment">// the first parser, alpha1, recognizes the input</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">parser</span>(<span class="string">"abc"</span>), <span class="prelude-val">Ok</span>((<span class="string">""</span>, <span class="string">"abc"</span>)));
|
||||
|
||||
<span class="comment">// the first parser returns an error, so alt tries the second one</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">parser</span>(<span class="string">"123456"</span>), <span class="prelude-val">Ok</span>((<span class="string">""</span>, <span class="string">"123456"</span>)));
|
||||
|
||||
<span class="comment">// both parsers failed, and with the default error type, alt will return the last error</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">parser</span>(<span class="string">" "</span>), <span class="prelude-val">Err</span>(<span class="ident">Err::Error</span>(<span class="macro">error_position!</span>(<span class="string">" "</span>, <span class="ident">ErrorKind::Digit</span>))));</code></pre></div>
|
||||
<p>With a custom error type, it is possible to have alt return the error of the parser
|
||||
that went the farthest in the input data</p>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
36
doc/nom/branch/fn.permutation.html
Normal file
36
doc/nom/branch/fn.permutation.html
Normal file
@ -0,0 +1,36 @@
|
||||
<!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="Applies a list of parsers in any order."><meta name="keywords" content="rust, rustlang, rust-lang, permutation"><title>permutation in nom::branch - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::branch</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">branch</a>::<wbr><a class="fn" href="#">permutation</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/branch/mod.rs.html#106-110">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn permutation<I: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, O, E: <a class="trait" href="../error/trait.ParseError.html" title="trait nom::error::ParseError">ParseError</a><I>, List: <a class="trait" href="trait.Permutation.html" title="trait nom::branch::Permutation">Permutation</a><I, O, E>>(<br> l: List<br>) -> impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(I) -> <a class="type" href="../type.IResult.html" title="type nom::IResult">IResult</a><I, O, E></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Applies a list of parsers in any order.</p>
|
||||
<p>Permutation will succeed if all of the child parsers succeeded.
|
||||
It takes as argument a tuple of parsers, and returns a
|
||||
tuple of the parser results.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">nom::character::complete</span>::{<span class="ident">alpha1</span>, <span class="ident">digit1</span>};
|
||||
<span class="kw">use</span> <span class="ident">nom::branch::permutation</span>;
|
||||
<span class="kw">fn</span> <span class="ident">parser</span>(<span class="ident">input</span>: <span class="kw-2">&</span><span class="ident">str</span>) -> <span class="ident">IResult</span><span class="op"><</span><span class="kw-2">&</span><span class="ident">str</span>, (<span class="kw-2">&</span><span class="ident">str</span>, <span class="kw-2">&</span><span class="ident">str</span>)<span class="op">></span> {
|
||||
<span class="ident">permutation</span>((<span class="ident">alpha1</span>, <span class="ident">digit1</span>))(<span class="ident">input</span>)
|
||||
}
|
||||
|
||||
<span class="comment">// permutation recognizes alphabetic characters then digit</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">parser</span>(<span class="string">"abc123"</span>), <span class="prelude-val">Ok</span>((<span class="string">""</span>, (<span class="string">"abc"</span>, <span class="string">"123"</span>))));
|
||||
|
||||
<span class="comment">// but also in inverse order</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">parser</span>(<span class="string">"123abc"</span>), <span class="prelude-val">Ok</span>((<span class="string">""</span>, (<span class="string">"abc"</span>, <span class="string">"123"</span>))));
|
||||
|
||||
<span class="comment">// it will fail if one of the parsers failed</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">parser</span>(<span class="string">"abc;"</span>), <span class="prelude-val">Err</span>(<span class="ident">Err::Error</span>(<span class="ident">Error::new</span>(<span class="string">";"</span>, <span class="ident">ErrorKind::Digit</span>))));</code></pre></div>
|
||||
<p>The parsers are applied greedily: if there are multiple unapplied parsers
|
||||
that could parse the next slice of input, the first one is used.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">nom::branch::permutation</span>;
|
||||
<span class="kw">use</span> <span class="ident">nom::character::complete</span>::{<span class="ident">anychar</span>, <span class="ident">char</span>};
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">parser</span>(<span class="ident">input</span>: <span class="kw-2">&</span><span class="ident">str</span>) -> <span class="ident">IResult</span><span class="op"><</span><span class="kw-2">&</span><span class="ident">str</span>, (<span class="ident">char</span>, <span class="ident">char</span>)<span class="op">></span> {
|
||||
<span class="ident">permutation</span>((<span class="ident">anychar</span>, <span class="ident">char</span>(<span class="string">'a'</span>)))(<span class="ident">input</span>)
|
||||
}
|
||||
|
||||
<span class="comment">// anychar parses 'b', then char('a') parses 'a'</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">parser</span>(<span class="string">"ba"</span>), <span class="prelude-val">Ok</span>((<span class="string">""</span>, (<span class="string">'b'</span>, <span class="string">'a'</span>))));
|
||||
|
||||
<span class="comment">// anychar parses 'a', then char('a') fails on 'b',</span>
|
||||
<span class="comment">// even though char('a') followed by anychar would succeed</span>
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">parser</span>(<span class="string">"ab"</span>), <span class="prelude-val">Err</span>(<span class="ident">Err::Error</span>(<span class="ident">Error::new</span>(<span class="string">"b"</span>, <span class="ident">ErrorKind::Char</span>))));</code></pre></div>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
6
doc/nom/branch/index.html
Normal file
6
doc/nom/branch/index.html
Normal file
@ -0,0 +1,6 @@
|
||||
<!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="Choice combinators"><meta name="keywords" content="rust, rustlang, rust-lang, branch"><title>nom::branch - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module branch</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">nom</a>::<wbr><a class="mod" href="#">branch</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/branch/mod.rs.html#1-267">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Choice combinators</p>
|
||||
</div></details><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Alt.html" title="nom::branch::Alt trait">Alt</a></div><div class="item-right docblock-short"><p>Helper trait for the <a href="fn.alt.html" title="alt()">alt()</a> combinator.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Permutation.html" title="nom::branch::Permutation trait">Permutation</a></div><div class="item-right docblock-short"><p>Helper trait for the <a href="fn.permutation.html" title="permutation()">permutation()</a> combinator.</p>
|
||||
</div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.alt.html" title="nom::branch::alt fn">alt</a></div><div class="item-right docblock-short"><p>Tests a list of parsers one by one until one succeeds.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.permutation.html" title="nom::branch::permutation fn">permutation</a></div><div class="item-right docblock-short"><p>Applies a list of parsers in any order.</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/branch/sidebar-items.js
Normal file
1
doc/nom/branch/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":[["alt","Tests a list of parsers one by one until one succeeds."],["permutation","Applies a list of parsers in any order."]],"trait":[["Alt","Helper trait for the [alt()] combinator."],["Permutation","Helper trait for the [permutation()] combinator."]]};
|
6
doc/nom/branch/trait.Alt.html
Normal file
6
doc/nom/branch/trait.Alt.html
Normal file
File diff suppressed because one or more lines are too long
6
doc/nom/branch/trait.Permutation.html
Normal file
6
doc/nom/branch/trait.Permutation.html
Normal file
File diff suppressed because one or more lines are too long
17
doc/nom/bytes/complete/fn.escaped.html
Normal file
17
doc/nom/bytes/complete/fn.escaped.html
Normal file
File diff suppressed because one or more lines are too long
28
doc/nom/bytes/complete/fn.escaped_transform.html
Normal file
28
doc/nom/bytes/complete/fn.escaped_transform.html
Normal file
File diff suppressed because one or more lines are too long
17
doc/nom/bytes/complete/fn.is_a.html
Normal file
17
doc/nom/bytes/complete/fn.is_a.html
Normal file
File diff suppressed because one or more lines are too long
16
doc/nom/bytes/complete/fn.is_not.html
Normal file
16
doc/nom/bytes/complete/fn.is_not.html
Normal file
File diff suppressed because one or more lines are too long
15
doc/nom/bytes/complete/fn.tag.html
Normal file
15
doc/nom/bytes/complete/fn.tag.html
Normal file
File diff suppressed because one or more lines are too long
17
doc/nom/bytes/complete/fn.tag_no_case.html
Normal file
17
doc/nom/bytes/complete/fn.tag_no_case.html
Normal file
File diff suppressed because one or more lines are too long
23
doc/nom/bytes/complete/fn.take.html
Normal file
23
doc/nom/bytes/complete/fn.take.html
Normal file
File diff suppressed because one or more lines are too long
15
doc/nom/bytes/complete/fn.take_till.html
Normal file
15
doc/nom/bytes/complete/fn.take_till.html
Normal file
File diff suppressed because one or more lines are too long
17
doc/nom/bytes/complete/fn.take_till1.html
Normal file
17
doc/nom/bytes/complete/fn.take_till1.html
Normal file
File diff suppressed because one or more lines are too long
15
doc/nom/bytes/complete/fn.take_until.html
Normal file
15
doc/nom/bytes/complete/fn.take_until.html
Normal file
File diff suppressed because one or more lines are too long
16
doc/nom/bytes/complete/fn.take_until1.html
Normal file
16
doc/nom/bytes/complete/fn.take_until1.html
Normal file
File diff suppressed because one or more lines are too long
16
doc/nom/bytes/complete/fn.take_while.html
Normal file
16
doc/nom/bytes/complete/fn.take_while.html
Normal file
File diff suppressed because one or more lines are too long
16
doc/nom/bytes/complete/fn.take_while1.html
Normal file
16
doc/nom/bytes/complete/fn.take_while1.html
Normal file
File diff suppressed because one or more lines are too long
19
doc/nom/bytes/complete/fn.take_while_m_n.html
Normal file
19
doc/nom/bytes/complete/fn.take_while_m_n.html
Normal file
File diff suppressed because one or more lines are too long
16
doc/nom/bytes/complete/index.html
Normal file
16
doc/nom/bytes/complete/index.html
Normal file
@ -0,0 +1,16 @@
|
||||
<!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="Parsers recognizing bytes streams, complete input version"><meta name="keywords" content="rust, rustlang, rust-lang, complete"><title>nom::bytes::complete - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">☰</button><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module complete</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../nom/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">nom</a>::<wbr><a href="../index.html">bytes</a>::<wbr><a class="mod" href="#">complete</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/nom/bytes/complete.rs.html#1-756">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Parsers recognizing bytes streams, complete input version</p>
|
||||
</div></details><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.escaped.html" title="nom::bytes::complete::escaped fn">escaped</a></div><div class="item-right docblock-short"><p>Matches a byte string with escaped characters.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.escaped_transform.html" title="nom::bytes::complete::escaped_transform fn">escaped_transform</a></div><div class="item-right docblock-short"><p>Matches a byte string with escaped characters.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_a.html" title="nom::bytes::complete::is_a fn">is_a</a></div><div class="item-right docblock-short"><p>Returns the longest slice of the matches the pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_not.html" title="nom::bytes::complete::is_not fn">is_not</a></div><div class="item-right docblock-short"><p>Parse till certain characters are met.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.tag.html" title="nom::bytes::complete::tag fn">tag</a></div><div class="item-right docblock-short"><p>Recognizes a pattern</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.tag_no_case.html" title="nom::bytes::complete::tag_no_case fn">tag_no_case</a></div><div class="item-right docblock-short"><p>Recognizes a case insensitive pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take.html" title="nom::bytes::complete::take fn">take</a></div><div class="item-right docblock-short"><p>Returns an input slice containing the first N input elements (Input[..N]).</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_till.html" title="nom::bytes::complete::take_till fn">take_till</a></div><div class="item-right docblock-short"><p>Returns the longest input slice (if any) till a predicate is met.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_till1.html" title="nom::bytes::complete::take_till1 fn">take_till1</a></div><div class="item-right docblock-short"><p>Returns the longest (at least 1) input slice till a predicate is met.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_until.html" title="nom::bytes::complete::take_until fn">take_until</a></div><div class="item-right docblock-short"><p>Returns the input slice up to the first occurrence of the pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_until1.html" title="nom::bytes::complete::take_until1 fn">take_until1</a></div><div class="item-right docblock-short"><p>Returns the non empty input slice up to the first occurrence of the pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_while.html" title="nom::bytes::complete::take_while fn">take_while</a></div><div class="item-right docblock-short"><p>Returns the longest input slice (if any) that matches the predicate.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_while1.html" title="nom::bytes::complete::take_while1 fn">take_while1</a></div><div class="item-right docblock-short"><p>Returns the longest (at least 1) input slice that matches the predicate.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_while_m_n.html" title="nom::bytes::complete::take_while_m_n fn">take_while_m_n</a></div><div class="item-right docblock-short"><p>Returns the longest (m <= len <= n) input slice that matches the predicate.</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/bytes/complete/sidebar-items.js
Normal file
1
doc/nom/bytes/complete/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":[["escaped","Matches a byte string with escaped characters."],["escaped_transform","Matches a byte string with escaped characters."],["is_a","Returns the longest slice of the matches the pattern."],["is_not","Parse till certain characters are met."],["tag","Recognizes a pattern"],["tag_no_case","Recognizes a case insensitive pattern."],["take","Returns an input slice containing the first N input elements (Input[..N])."],["take_till","Returns the longest input slice (if any) till a predicate is met."],["take_till1","Returns the longest (at least 1) input slice till a predicate is met."],["take_until","Returns the input slice up to the first occurrence of the pattern."],["take_until1","Returns the non empty input slice up to the first occurrence of the pattern."],["take_while","Returns the longest input slice (if any) that matches the predicate."],["take_while1","Returns the longest (at least 1) input slice that matches the predicate."],["take_while_m_n","Returns the longest (m <= len <= n) input slice that matches the predicate."]]};
|
4
doc/nom/bytes/index.html
Normal file
4
doc/nom/bytes/index.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!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="Parsers recognizing bytes streams"><meta name="keywords" content="rust, rustlang, rust-lang, bytes"><title>nom::bytes - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module bytes</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#modules">Modules</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">nom</a>::<wbr><a class="mod" href="#">bytes</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/bytes/mod.rs.html#1-6">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Parsers recognizing bytes streams</p>
|
||||
</div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="complete/index.html" title="nom::bytes::complete mod">complete</a></div><div class="item-right docblock-short"><p>Parsers recognizing bytes streams, complete input version</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="streaming/index.html" title="nom::bytes::streaming mod">streaming</a></div><div class="item-right docblock-short"><p>Parsers recognizing bytes streams, streaming version</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/bytes/sidebar-items.js
Normal file
1
doc/nom/bytes/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"mod":[["complete","Parsers recognizing bytes streams, complete input version"],["streaming","Parsers recognizing bytes streams, streaming version"]]};
|
17
doc/nom/bytes/streaming/fn.escaped.html
Normal file
17
doc/nom/bytes/streaming/fn.escaped.html
Normal file
File diff suppressed because one or more lines are too long
27
doc/nom/bytes/streaming/fn.escaped_transform.html
Normal file
27
doc/nom/bytes/streaming/fn.escaped_transform.html
Normal file
File diff suppressed because one or more lines are too long
19
doc/nom/bytes/streaming/fn.is_a.html
Normal file
19
doc/nom/bytes/streaming/fn.is_a.html
Normal file
File diff suppressed because one or more lines are too long
16
doc/nom/bytes/streaming/fn.is_not.html
Normal file
16
doc/nom/bytes/streaming/fn.is_not.html
Normal file
File diff suppressed because one or more lines are too long
15
doc/nom/bytes/streaming/fn.tag.html
Normal file
15
doc/nom/bytes/streaming/fn.tag.html
Normal file
File diff suppressed because one or more lines are too long
16
doc/nom/bytes/streaming/fn.tag_no_case.html
Normal file
16
doc/nom/bytes/streaming/fn.tag_no_case.html
Normal file
File diff suppressed because one or more lines are too long
19
doc/nom/bytes/streaming/fn.take.html
Normal file
19
doc/nom/bytes/streaming/fn.take.html
Normal file
File diff suppressed because one or more lines are too long
18
doc/nom/bytes/streaming/fn.take_till.html
Normal file
18
doc/nom/bytes/streaming/fn.take_till.html
Normal file
File diff suppressed because one or more lines are too long
18
doc/nom/bytes/streaming/fn.take_till1.html
Normal file
18
doc/nom/bytes/streaming/fn.take_till1.html
Normal file
File diff suppressed because one or more lines are too long
17
doc/nom/bytes/streaming/fn.take_until.html
Normal file
17
doc/nom/bytes/streaming/fn.take_until.html
Normal file
File diff suppressed because one or more lines are too long
18
doc/nom/bytes/streaming/fn.take_until1.html
Normal file
18
doc/nom/bytes/streaming/fn.take_until1.html
Normal file
File diff suppressed because one or more lines are too long
18
doc/nom/bytes/streaming/fn.take_while.html
Normal file
18
doc/nom/bytes/streaming/fn.take_while.html
Normal file
File diff suppressed because one or more lines are too long
18
doc/nom/bytes/streaming/fn.take_while1.html
Normal file
18
doc/nom/bytes/streaming/fn.take_while1.html
Normal file
File diff suppressed because one or more lines are too long
20
doc/nom/bytes/streaming/fn.take_while_m_n.html
Normal file
20
doc/nom/bytes/streaming/fn.take_while_m_n.html
Normal file
File diff suppressed because one or more lines are too long
16
doc/nom/bytes/streaming/index.html
Normal file
16
doc/nom/bytes/streaming/index.html
Normal file
@ -0,0 +1,16 @@
|
||||
<!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="Parsers recognizing bytes streams, streaming version"><meta name="keywords" content="rust, rustlang, rust-lang, streaming"><title>nom::bytes::streaming - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">☰</button><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module streaming</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../nom/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">nom</a>::<wbr><a href="../index.html">bytes</a>::<wbr><a class="mod" href="#">streaming</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/nom/bytes/streaming.rs.html#1-700">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Parsers recognizing bytes streams, streaming version</p>
|
||||
</div></details><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.escaped.html" title="nom::bytes::streaming::escaped fn">escaped</a></div><div class="item-right docblock-short"><p>Matches a byte string with escaped characters.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.escaped_transform.html" title="nom::bytes::streaming::escaped_transform fn">escaped_transform</a></div><div class="item-right docblock-short"><p>Matches a byte string with escaped characters.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_a.html" title="nom::bytes::streaming::is_a fn">is_a</a></div><div class="item-right docblock-short"><p>Returns the longest slice of the matches the pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_not.html" title="nom::bytes::streaming::is_not fn">is_not</a></div><div class="item-right docblock-short"><p>Parse till certain characters are met.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.tag.html" title="nom::bytes::streaming::tag fn">tag</a></div><div class="item-right docblock-short"><p>Recognizes a pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.tag_no_case.html" title="nom::bytes::streaming::tag_no_case fn">tag_no_case</a></div><div class="item-right docblock-short"><p>Recognizes a case insensitive pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take.html" title="nom::bytes::streaming::take fn">take</a></div><div class="item-right docblock-short"><p>Returns an input slice containing the first N input elements (Input[..N]).</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_till.html" title="nom::bytes::streaming::take_till fn">take_till</a></div><div class="item-right docblock-short"><p>Returns the longest input slice (if any) till a predicate is met.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_till1.html" title="nom::bytes::streaming::take_till1 fn">take_till1</a></div><div class="item-right docblock-short"><p>Returns the longest (at least 1) input slice till a predicate is met.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_until.html" title="nom::bytes::streaming::take_until fn">take_until</a></div><div class="item-right docblock-short"><p>Returns the input slice up to the first occurrence of the pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_until1.html" title="nom::bytes::streaming::take_until1 fn">take_until1</a></div><div class="item-right docblock-short"><p>Returns the non empty input slice up to the first occurrence of the pattern.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_while.html" title="nom::bytes::streaming::take_while fn">take_while</a></div><div class="item-right docblock-short"><p>Returns the longest input slice (if any) that matches the predicate.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_while1.html" title="nom::bytes::streaming::take_while1 fn">take_while1</a></div><div class="item-right docblock-short"><p>Returns the longest (at least 1) input slice that matches the predicate.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.take_while_m_n.html" title="nom::bytes::streaming::take_while_m_n fn">take_while_m_n</a></div><div class="item-right docblock-short"><p>Returns the longest (m <= len <= n) input slice that matches the predicate.</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/bytes/streaming/sidebar-items.js
Normal file
1
doc/nom/bytes/streaming/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":[["escaped","Matches a byte string with escaped characters."],["escaped_transform","Matches a byte string with escaped characters."],["is_a","Returns the longest slice of the matches the pattern."],["is_not","Parse till certain characters are met."],["tag","Recognizes a pattern."],["tag_no_case","Recognizes a case insensitive pattern."],["take","Returns an input slice containing the first N input elements (Input[..N])."],["take_till","Returns the longest input slice (if any) till a predicate is met."],["take_till1","Returns the longest (at least 1) input slice till a predicate is met."],["take_until","Returns the input slice up to the first occurrence of the pattern."],["take_until1","Returns the non empty input slice up to the first occurrence of the pattern."],["take_while","Returns the longest input slice (if any) that matches the predicate."],["take_while1","Returns the longest (at least 1) input slice that matches the predicate."],["take_while_m_n","Returns the longest (m <= len <= n) input slice that matches the predicate."]]};
|
12
doc/nom/character/complete/fn.alpha0.html
Normal file
12
doc/nom/character/complete/fn.alpha0.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.alpha1.html
Normal file
12
doc/nom/character/complete/fn.alpha1.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.alphanumeric0.html
Normal file
12
doc/nom/character/complete/fn.alphanumeric0.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.alphanumeric1.html
Normal file
12
doc/nom/character/complete/fn.alphanumeric1.html
Normal file
File diff suppressed because one or more lines are too long
11
doc/nom/character/complete/fn.anychar.html
Normal file
11
doc/nom/character/complete/fn.anychar.html
Normal file
File diff suppressed because one or more lines are too long
11
doc/nom/character/complete/fn.char.html
Normal file
11
doc/nom/character/complete/fn.char.html
Normal file
File diff suppressed because one or more lines are too long
11
doc/nom/character/complete/fn.crlf.html
Normal file
11
doc/nom/character/complete/fn.crlf.html
Normal file
File diff suppressed because one or more lines are too long
13
doc/nom/character/complete/fn.digit0.html
Normal file
13
doc/nom/character/complete/fn.digit0.html
Normal file
File diff suppressed because one or more lines are too long
22
doc/nom/character/complete/fn.digit1.html
Normal file
22
doc/nom/character/complete/fn.digit1.html
Normal file
File diff suppressed because one or more lines are too long
11
doc/nom/character/complete/fn.hex_digit0.html
Normal file
11
doc/nom/character/complete/fn.hex_digit0.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.hex_digit1.html
Normal file
12
doc/nom/character/complete/fn.hex_digit1.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.i128.html
Normal file
3
doc/nom/character/complete/fn.i128.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.i16.html
Normal file
3
doc/nom/character/complete/fn.i16.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.i32.html
Normal file
3
doc/nom/character/complete/fn.i32.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.i64.html
Normal file
3
doc/nom/character/complete/fn.i64.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.i8.html
Normal file
3
doc/nom/character/complete/fn.i8.html
Normal file
File diff suppressed because one or more lines are too long
11
doc/nom/character/complete/fn.line_ending.html
Normal file
11
doc/nom/character/complete/fn.line_ending.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.multispace0.html
Normal file
12
doc/nom/character/complete/fn.multispace0.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.multispace1.html
Normal file
12
doc/nom/character/complete/fn.multispace1.html
Normal file
File diff suppressed because one or more lines are too long
11
doc/nom/character/complete/fn.newline.html
Normal file
11
doc/nom/character/complete/fn.newline.html
Normal file
File diff suppressed because one or more lines are too long
7
doc/nom/character/complete/fn.none_of.html
Normal file
7
doc/nom/character/complete/fn.none_of.html
Normal file
File diff suppressed because one or more lines are too long
14
doc/nom/character/complete/fn.not_line_ending.html
Normal file
14
doc/nom/character/complete/fn.not_line_ending.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.oct_digit0.html
Normal file
12
doc/nom/character/complete/fn.oct_digit0.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.oct_digit1.html
Normal file
12
doc/nom/character/complete/fn.oct_digit1.html
Normal file
File diff suppressed because one or more lines are too long
7
doc/nom/character/complete/fn.one_of.html
Normal file
7
doc/nom/character/complete/fn.one_of.html
Normal file
File diff suppressed because one or more lines are too long
10
doc/nom/character/complete/fn.satisfy.html
Normal file
10
doc/nom/character/complete/fn.satisfy.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.space0.html
Normal file
12
doc/nom/character/complete/fn.space0.html
Normal file
File diff suppressed because one or more lines are too long
12
doc/nom/character/complete/fn.space1.html
Normal file
12
doc/nom/character/complete/fn.space1.html
Normal file
File diff suppressed because one or more lines are too long
11
doc/nom/character/complete/fn.tab.html
Normal file
11
doc/nom/character/complete/fn.tab.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.u128.html
Normal file
3
doc/nom/character/complete/fn.u128.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.u16.html
Normal file
3
doc/nom/character/complete/fn.u16.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.u32.html
Normal file
3
doc/nom/character/complete/fn.u32.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.u64.html
Normal file
3
doc/nom/character/complete/fn.u64.html
Normal file
File diff suppressed because one or more lines are too long
3
doc/nom/character/complete/fn.u8.html
Normal file
3
doc/nom/character/complete/fn.u8.html
Normal file
File diff suppressed because one or more lines are too long
38
doc/nom/character/complete/index.html
Normal file
38
doc/nom/character/complete/index.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!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, complete input version."><meta name="keywords" content="rust, rustlang, rust-lang, complete"><title>nom::character::complete - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">☰</button><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module complete</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../nom/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">nom</a>::<wbr><a href="../index.html">character</a>::<wbr><a class="mod" href="#">complete</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/nom/character/complete.rs.html#1-1227">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Character specific parsers and combinators, complete input version.</p>
|
||||
<p>Functions recognizing specific characters.</p>
|
||||
</div></details><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.alpha0.html" title="nom::character::complete::alpha0 fn">alpha0</a></div><div class="item-right docblock-short"><p>Recognizes zero or more lowercase and uppercase ASCII alphabetic characters: a-z, A-Z</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.alpha1.html" title="nom::character::complete::alpha1 fn">alpha1</a></div><div class="item-right docblock-short"><p>Recognizes one or more lowercase and uppercase ASCII alphabetic characters: a-z, A-Z</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.alphanumeric0.html" title="nom::character::complete::alphanumeric0 fn">alphanumeric0</a></div><div class="item-right docblock-short"><p>Recognizes zero or more ASCII numerical and alphabetic characters: 0-9, a-z, A-Z</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.alphanumeric1.html" title="nom::character::complete::alphanumeric1 fn">alphanumeric1</a></div><div class="item-right docblock-short"><p>Recognizes one or more ASCII numerical and alphabetic characters: 0-9, a-z, A-Z</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.anychar.html" title="nom::character::complete::anychar fn">anychar</a></div><div class="item-right docblock-short"><p>Matches one byte as a character. Note that the input type will
|
||||
accept a <code>str</code>, but not a <code>&[u8]</code>, unlike many other nom parsers.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.char.html" title="nom::character::complete::char fn">char</a></div><div class="item-right docblock-short"><p>Recognizes one character.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.crlf.html" title="nom::character::complete::crlf fn">crlf</a></div><div class="item-right docblock-short"><p>Recognizes the string “\r\n”.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.digit0.html" title="nom::character::complete::digit0 fn">digit0</a></div><div class="item-right docblock-short"><p>Recognizes zero or more ASCII numerical characters: 0-9</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.digit1.html" title="nom::character::complete::digit1 fn">digit1</a></div><div class="item-right docblock-short"><p>Recognizes one or more ASCII numerical characters: 0-9</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.hex_digit0.html" title="nom::character::complete::hex_digit0 fn">hex_digit0</a></div><div class="item-right docblock-short"><p>Recognizes zero or more ASCII hexadecimal numerical characters: 0-9, A-F, a-f</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.hex_digit1.html" title="nom::character::complete::hex_digit1 fn">hex_digit1</a></div><div class="item-right docblock-short"><p>Recognizes one or more ASCII hexadecimal numerical characters: 0-9, A-F, a-f</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.i8.html" title="nom::character::complete::i8 fn">i8</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.i16.html" title="nom::character::complete::i16 fn">i16</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.i32.html" title="nom::character::complete::i32 fn">i32</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.i64.html" title="nom::character::complete::i64 fn">i64</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.i128.html" title="nom::character::complete::i128 fn">i128</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.line_ending.html" title="nom::character::complete::line_ending fn">line_ending</a></div><div class="item-right docblock-short"><p>Recognizes an end of line (both ‘\n’ and ‘\r\n’).</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.multispace0.html" title="nom::character::complete::multispace0 fn">multispace0</a></div><div class="item-right docblock-short"><p>Recognizes zero or more spaces, tabs, carriage returns and line feeds.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.multispace1.html" title="nom::character::complete::multispace1 fn">multispace1</a></div><div class="item-right docblock-short"><p>Recognizes one or more spaces, tabs, carriage returns and line feeds.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.newline.html" title="nom::character::complete::newline fn">newline</a></div><div class="item-right docblock-short"><p>Matches a newline character ‘\n’.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.none_of.html" title="nom::character::complete::none_of fn">none_of</a></div><div class="item-right docblock-short"><p>Recognizes a character that is not in the provided characters.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.not_line_ending.html" title="nom::character::complete::not_line_ending fn">not_line_ending</a></div><div class="item-right docblock-short"><p>Recognizes a string of any char except ‘\r\n’ or ‘\n’.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.oct_digit0.html" title="nom::character::complete::oct_digit0 fn">oct_digit0</a></div><div class="item-right docblock-short"><p>Recognizes zero or more octal characters: 0-7</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.oct_digit1.html" title="nom::character::complete::oct_digit1 fn">oct_digit1</a></div><div class="item-right docblock-short"><p>Recognizes one or more octal characters: 0-7</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.one_of.html" title="nom::character::complete::one_of fn">one_of</a></div><div class="item-right docblock-short"><p>Recognizes one of the provided characters.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.satisfy.html" title="nom::character::complete::satisfy fn">satisfy</a></div><div class="item-right docblock-short"><p>Recognizes one character and checks that it satisfies a predicate</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.space0.html" title="nom::character::complete::space0 fn">space0</a></div><div class="item-right docblock-short"><p>Recognizes zero or more spaces and tabs.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.space1.html" title="nom::character::complete::space1 fn">space1</a></div><div class="item-right docblock-short"><p>Recognizes one or more spaces and tabs.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.tab.html" title="nom::character::complete::tab fn">tab</a></div><div class="item-right docblock-short"><p>Matches a tab character ‘\t’.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.u8.html" title="nom::character::complete::u8 fn">u8</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.u16.html" title="nom::character::complete::u16 fn">u16</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.u32.html" title="nom::character::complete::u32 fn">u32</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.u64.html" title="nom::character::complete::u64 fn">u64</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.u128.html" title="nom::character::complete::u128 fn">u128</a></div><div class="item-right docblock-short"><p>will parse a number in text form to a number</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/character/complete/sidebar-items.js
Normal file
1
doc/nom/character/complete/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":[["alpha0","Recognizes zero or more lowercase and uppercase ASCII alphabetic characters: a-z, A-Z"],["alpha1","Recognizes one or more lowercase and uppercase ASCII alphabetic characters: a-z, A-Z"],["alphanumeric0","Recognizes zero or more ASCII numerical and alphabetic characters: 0-9, a-z, A-Z"],["alphanumeric1","Recognizes one or more ASCII numerical and alphabetic characters: 0-9, a-z, A-Z"],["anychar","Matches one byte as a character. Note that the input type will accept a `str`, but not a `&[u8]`, unlike many other nom parsers."],["char","Recognizes one character."],["crlf","Recognizes the string “\\r\\n”."],["digit0","Recognizes zero or more ASCII numerical characters: 0-9"],["digit1","Recognizes one or more ASCII numerical characters: 0-9"],["hex_digit0","Recognizes zero or more ASCII hexadecimal numerical characters: 0-9, A-F, a-f"],["hex_digit1","Recognizes one or more ASCII hexadecimal numerical characters: 0-9, A-F, a-f"],["i128","will parse a number in text form to a number"],["i16","will parse a number in text form to a number"],["i32","will parse a number in text form to a number"],["i64","will parse a number in text form to a number"],["i8","will parse a number in text form to a number"],["line_ending","Recognizes an end of line (both ‘\\n’ and ‘\\r\\n’)."],["multispace0","Recognizes zero or more spaces, tabs, carriage returns and line feeds."],["multispace1","Recognizes one or more spaces, tabs, carriage returns and line feeds."],["newline","Matches a newline character ‘\\n’."],["none_of","Recognizes a character that is not in the provided characters."],["not_line_ending","Recognizes a string of any char except ‘\\r\\n’ or ‘\\n’."],["oct_digit0","Recognizes zero or more octal characters: 0-7"],["oct_digit1","Recognizes one or more octal characters: 0-7"],["one_of","Recognizes one of the provided characters."],["satisfy","Recognizes one character and checks that it satisfies a predicate"],["space0","Recognizes zero or more spaces and tabs."],["space1","Recognizes one or more spaces and tabs."],["tab","Matches a tab character ‘\\t’."],["u128","will parse a number in text form to a number"],["u16","will parse a number in text form to a number"],["u32","will parse a number in text form to a number"],["u64","will parse a number in text form to a number"],["u8","will parse a number in text form to a number"]]};
|
5
doc/nom/character/fn.is_alphabetic.html
Normal file
5
doc/nom/character/fn.is_alphabetic.html
Normal file
@ -0,0 +1,5 @@
|
||||
<!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="Tests if byte is ASCII alphabetic: A-Z, a-z"><meta name="keywords" content="rust, rustlang, rust-lang, is_alphabetic"><title>is_alphabetic in nom::character - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::character</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">character</a>::<wbr><a class="fn" href="#">is_alphabetic</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/character/mod.rs.html#21-23">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn is_alphabetic(chr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tests if byte is ASCII alphabetic: A-Z, a-z</p>
|
||||
<h2 id="example"><a href="#example">Example</a></h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="ident">is_alphabetic</span>(<span class="string">b'9'</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_alphabetic</span>(<span class="string">b'a'</span>), <span class="bool-val">true</span>);</code></pre></div>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
7
doc/nom/character/fn.is_alphanumeric.html
Normal file
7
doc/nom/character/fn.is_alphanumeric.html
Normal file
@ -0,0 +1,7 @@
|
||||
<!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="Tests if byte is ASCII alphanumeric: A-Z, a-z, 0-9"><meta name="keywords" content="rust, rustlang, rust-lang, is_alphanumeric"><title>is_alphanumeric in nom::character - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::character</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">character</a>::<wbr><a class="fn" href="#">is_alphanumeric</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/character/mod.rs.html#82-84">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn is_alphanumeric(chr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tests if byte is ASCII alphanumeric: A-Z, a-z, 0-9</p>
|
||||
<h2 id="example"><a href="#example">Example</a></h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="ident">is_alphanumeric</span>(<span class="string">b'-'</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_alphanumeric</span>(<span class="string">b'a'</span>), <span class="bool-val">true</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_alphanumeric</span>(<span class="string">b'9'</span>), <span class="bool-val">true</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_alphanumeric</span>(<span class="string">b'A'</span>), <span class="bool-val">true</span>);</code></pre></div>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
5
doc/nom/character/fn.is_digit.html
Normal file
5
doc/nom/character/fn.is_digit.html
Normal file
@ -0,0 +1,5 @@
|
||||
<!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="Tests if byte is ASCII digit: 0-9"><meta name="keywords" content="rust, rustlang, rust-lang, is_digit"><title>is_digit in nom::character - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::character</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">character</a>::<wbr><a class="fn" href="#">is_digit</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/character/mod.rs.html#35-37">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn is_digit(chr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tests if byte is ASCII digit: 0-9</p>
|
||||
<h2 id="example"><a href="#example">Example</a></h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="ident">is_digit</span>(<span class="string">b'a'</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_digit</span>(<span class="string">b'9'</span>), <span class="bool-val">true</span>);</code></pre></div>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
7
doc/nom/character/fn.is_hex_digit.html
Normal file
7
doc/nom/character/fn.is_hex_digit.html
Normal file
@ -0,0 +1,7 @@
|
||||
<!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="Tests if byte is ASCII hex digit: 0-9, A-F, a-f"><meta name="keywords" content="rust, rustlang, rust-lang, is_hex_digit"><title>is_hex_digit in nom::character - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::character</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">character</a>::<wbr><a class="fn" href="#">is_hex_digit</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/character/mod.rs.html#51-53">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn is_hex_digit(chr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tests if byte is ASCII hex digit: 0-9, A-F, a-f</p>
|
||||
<h2 id="example"><a href="#example">Example</a></h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="ident">is_hex_digit</span>(<span class="string">b'a'</span>), <span class="bool-val">true</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_hex_digit</span>(<span class="string">b'9'</span>), <span class="bool-val">true</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_hex_digit</span>(<span class="string">b'A'</span>), <span class="bool-val">true</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_hex_digit</span>(<span class="string">b'x'</span>), <span class="bool-val">false</span>);</code></pre></div>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
7
doc/nom/character/fn.is_newline.html
Normal file
7
doc/nom/character/fn.is_newline.html
Normal file
@ -0,0 +1,7 @@
|
||||
<!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="Tests if byte is ASCII newline: \n"><meta name="keywords" content="rust, rustlang, rust-lang, is_newline"><title>is_newline in nom::character - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::character</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">character</a>::<wbr><a class="fn" href="#">is_newline</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/character/mod.rs.html#114-116">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn is_newline(chr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tests if byte is ASCII newline: \n</p>
|
||||
<h2 id="example"><a href="#example">Example</a></h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="ident">is_newline</span>(<span class="string">b'\n'</span>), <span class="bool-val">true</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_newline</span>(<span class="string">b'\r'</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_newline</span>(<span class="string">b' '</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_newline</span>(<span class="string">b'\t'</span>), <span class="bool-val">false</span>);</code></pre></div>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
6
doc/nom/character/fn.is_oct_digit.html
Normal file
6
doc/nom/character/fn.is_oct_digit.html
Normal file
@ -0,0 +1,6 @@
|
||||
<!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="Tests if byte is ASCII octal digit: 0-7"><meta name="keywords" content="rust, rustlang, rust-lang, is_oct_digit"><title>is_oct_digit in nom::character - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::character</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">character</a>::<wbr><a class="fn" href="#">is_oct_digit</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/character/mod.rs.html#66-68">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn is_oct_digit(chr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tests if byte is ASCII octal digit: 0-7</p>
|
||||
<h2 id="example"><a href="#example">Example</a></h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="ident">is_oct_digit</span>(<span class="string">b'a'</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_oct_digit</span>(<span class="string">b'9'</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_oct_digit</span>(<span class="string">b'6'</span>), <span class="bool-val">true</span>);</code></pre></div>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
7
doc/nom/character/fn.is_space.html
Normal file
7
doc/nom/character/fn.is_space.html
Normal file
@ -0,0 +1,7 @@
|
||||
<!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="Tests if byte is ASCII space or tab"><meta name="keywords" content="rust, rustlang, rust-lang, is_space"><title>is_space in nom::character - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc fn"><!--[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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In nom::character</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">nom</a>::<wbr><a href="index.html">character</a>::<wbr><a class="fn" href="#">is_space</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/character/mod.rs.html#98-100">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn is_space(chr: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tests if byte is ASCII space or tab</p>
|
||||
<h2 id="example"><a href="#example">Example</a></h2>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="ident">is_space</span>(<span class="string">b'\n'</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_space</span>(<span class="string">b'\r'</span>), <span class="bool-val">false</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_space</span>(<span class="string">b' '</span>), <span class="bool-val">true</span>);
|
||||
<span class="macro">assert_eq!</span>(<span class="ident">is_space</span>(<span class="string">b'\t'</span>), <span class="bool-val">true</span>);</code></pre></div>
|
||||
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
12
doc/nom/character/index.html
Normal file
12
doc/nom/character/index.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!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"><meta name="keywords" content="rust, rustlang, rust-lang, character"><title>nom::character - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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">☰</button><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../nom/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module character</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#modules">Modules</a></li><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../nom/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">nom</a>::<wbr><a class="mod" href="#">character</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/nom/character/mod.rs.html#1-116">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-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="modules" class="small-section-header"><a href="#modules">Modules</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="complete/index.html" title="nom::character::complete mod">complete</a></div><div class="item-right docblock-short"><p>Character specific parsers and combinators, complete input version.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="streaming/index.html" title="nom::character::streaming mod">streaming</a></div><div class="item-right docblock-short"><p>Character specific parsers and combinators, streaming version</p>
|
||||
</div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_alphabetic.html" title="nom::character::is_alphabetic fn">is_alphabetic</a></div><div class="item-right docblock-short"><p>Tests if byte is ASCII alphabetic: A-Z, a-z</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_alphanumeric.html" title="nom::character::is_alphanumeric fn">is_alphanumeric</a></div><div class="item-right docblock-short"><p>Tests if byte is ASCII alphanumeric: A-Z, a-z, 0-9</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_digit.html" title="nom::character::is_digit fn">is_digit</a></div><div class="item-right docblock-short"><p>Tests if byte is ASCII digit: 0-9</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_hex_digit.html" title="nom::character::is_hex_digit fn">is_hex_digit</a></div><div class="item-right docblock-short"><p>Tests if byte is ASCII hex digit: 0-9, A-F, a-f</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_newline.html" title="nom::character::is_newline fn">is_newline</a></div><div class="item-right docblock-short"><p>Tests if byte is ASCII newline: \n</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_oct_digit.html" title="nom::character::is_oct_digit fn">is_oct_digit</a></div><div class="item-right docblock-short"><p>Tests if byte is ASCII octal digit: 0-7</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.is_space.html" title="nom::character::is_space fn">is_space</a></div><div class="item-right docblock-short"><p>Tests if byte is ASCII space or tab</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="nom" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>
|
1
doc/nom/character/sidebar-items.js
Normal file
1
doc/nom/character/sidebar-items.js
Normal file
@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":[["is_alphabetic","Tests if byte is ASCII alphabetic: A-Z, a-z"],["is_alphanumeric","Tests if byte is ASCII alphanumeric: A-Z, a-z, 0-9"],["is_digit","Tests if byte is ASCII digit: 0-9"],["is_hex_digit","Tests if byte is ASCII hex digit: 0-9, A-F, a-f"],["is_newline","Tests if byte is ASCII newline: \\n"],["is_oct_digit","Tests if byte is ASCII octal digit: 0-7"],["is_space","Tests if byte is ASCII space or tab"]],"mod":[["complete","Character specific parsers and combinators, complete input version."],["streaming","Character specific parsers and combinators, streaming version"]]};
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user