ssw/doc/clap/builder/trait.ValueParserFactory.html
2023-01-09 19:23:20 +01:00

41 lines
30 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="Register a type with [value_parser!][crate::value_parser!]"><meta name="keywords" content="rust, rustlang, rust-lang, ValueParserFactory"><title>ValueParserFactory in clap::builder - 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 trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../clap/index.html"><div class="logo-container"><img src="https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../clap/index.html"><div class="logo-container">
<img src="https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png" alt="logo"></div></a><h2 class="location"><a href="#">ValueParserFactory</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-associated-types">Required Associated Types</a></h3><ul><li><a href="#associatedtype.Parser">Parser</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.value_parser">value_parser</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul><li><a href="#impl-ValueParserFactory-for-OsString">OsString</a></li><li><a href="#impl-ValueParserFactory-for-PathBuf">PathBuf</a></li><li><a href="#impl-ValueParserFactory-for-String">String</a></li><li><a href="#impl-ValueParserFactory-for-bool">bool</a></li><li><a href="#impl-ValueParserFactory-for-i16">i16</a></li><li><a href="#impl-ValueParserFactory-for-i32">i32</a></li><li><a href="#impl-ValueParserFactory-for-i64">i64</a></li><li><a href="#impl-ValueParserFactory-for-i8">i8</a></li><li><a href="#impl-ValueParserFactory-for-u16">u16</a></li><li><a href="#impl-ValueParserFactory-for-u32">u32</a></li><li><a href="#impl-ValueParserFactory-for-u64">u64</a></li><li><a href="#impl-ValueParserFactory-for-u8">u8</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In clap::builder</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../clap/index.html">
<img src="https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png" 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">Trait <a href="../index.html">clap</a>::<wbr><a href="index.html">builder</a>::<wbr><a class="trait" href="#">ValueParserFactory</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/clap/builder/value_parser.rs.html#2090-2099">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait ValueParserFactory {
type <a href="#associatedtype.Parser" class="associatedtype">Parser</a>;
fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Register a type with <a href="../macro.value_parser.html" title="crate::value_parser!">value_parser!</a></p>
<h2 id="example"><a href="#example">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Copy</span>, <span class="ident">Clone</span>, <span class="ident">Debug</span>)]</span>
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Custom</span>(<span class="ident">u32</span>);
<span class="kw">impl</span> <span class="ident">clap::builder::ValueParserFactory</span> <span class="kw">for</span> <span class="ident">Custom</span> {
<span class="kw">type</span> <span class="ident">Parser</span> <span class="op">=</span> <span class="ident">CustomValueParser</span>;
<span class="kw">fn</span> <span class="ident">value_parser</span>() -&gt; <span class="ident"><span class="self">Self</span>::Parser</span> {
<span class="ident">CustomValueParser</span>
}
}
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Clone</span>, <span class="ident">Debug</span>)]</span>
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">CustomValueParser</span>;
<span class="kw">impl</span> <span class="ident">clap::builder::TypedValueParser</span> <span class="kw">for</span> <span class="ident">CustomValueParser</span> {
<span class="kw">type</span> <span class="ident">Value</span> <span class="op">=</span> <span class="ident">Custom</span>;
<span class="kw">fn</span> <span class="ident">parse_ref</span>(
<span class="kw-2">&amp;</span><span class="self">self</span>,
<span class="ident">cmd</span>: <span class="kw-2">&amp;</span><span class="ident">clap::Command</span>,
<span class="ident">arg</span>: <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="kw-2">&amp;</span><span class="ident">clap::Arg</span><span class="op">&gt;</span>,
<span class="ident">value</span>: <span class="kw-2">&amp;</span><span class="ident">std::ffi::OsStr</span>,
) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="ident"><span class="self">Self</span>::Value</span>, <span class="ident">clap::Error</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">inner</span> <span class="op">=</span> <span class="macro">clap::value_parser!</span>(<span class="ident">u32</span>);
<span class="kw">let</span> <span class="ident">val</span> <span class="op">=</span> <span class="ident">inner</span>.<span class="ident">parse_ref</span>(<span class="ident">cmd</span>, <span class="ident">arg</span>, <span class="ident">value</span>)<span class="question-mark">?</span>;
<span class="prelude-val">Ok</span>(<span class="ident">Custom</span>(<span class="ident">val</span>))
}
}
<span class="kw">let</span> <span class="ident">parser</span>: <span class="ident">CustomValueParser</span> <span class="op">=</span> <span class="macro">clap::value_parser!</span>(<span class="ident">Custom</span>);</code></pre></div>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Parser" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2095">source</a></div><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a></h4></div></summary><div class="docblock"><p>Generated parser, usually <a href="struct.ValueParser.html" title="ValueParser"><code>ValueParser</code></a>.</p>
<p>It should at least be a type that supports <code>Into&lt;ValueParser&gt;</code>. A non-<code>ValueParser</code> type
allows the caller to do further initialization on the parser.</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.value_parser" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2098">source</a></div><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></div></summary><div class="docblock"><p>Create the specified <a href="trait.ValueParserFactory.html#associatedtype.Parser" title="Self::Parser"><code>Self::Parser</code></a></p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-String" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2100-2105">source</a></span><a href="#impl-ValueParserFactory-for-String" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.ValueParser.html" title="struct clap::builder::ValueParser">ValueParser</a></h4></section><section id="method.value_parser" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2102-2104">source</a></span><a href="#method.value_parser" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-OsString" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2106-2111">source</a></span><a href="#impl-ValueParserFactory-for-OsString" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="struct" href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.ValueParser.html" title="struct clap::builder::ValueParser">ValueParser</a></h4></section><section id="method.value_parser-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2108-2110">source</a></span><a href="#method.value_parser-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-PathBuf" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2112-2117">source</a></span><a href="#impl-ValueParserFactory-for-PathBuf" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.ValueParser.html" title="struct clap::builder::ValueParser">ValueParser</a></h4></section><section id="method.value_parser-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2114-2116">source</a></span><a href="#method.value_parser-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-bool" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2118-2123">source</a></span><a href="#impl-ValueParserFactory-for-bool" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.ValueParser.html" title="struct clap::builder::ValueParser">ValueParser</a></h4></section><section id="method.value_parser-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2120-2122">source</a></span><a href="#method.value_parser-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-u8" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2124-2131">source</a></span><a href="#impl-ValueParserFactory-for-u8" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-5" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.RangedI64ValueParser.html" title="struct clap::builder::RangedI64ValueParser">RangedI64ValueParser</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>&gt;</h4></section><section id="method.value_parser-4" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2126-2130">source</a></span><a href="#method.value_parser-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-i8" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2132-2139">source</a></span><a href="#impl-ValueParserFactory-for-i8" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i8.html">i8</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-6" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.RangedI64ValueParser.html" title="struct clap::builder::RangedI64ValueParser">RangedI64ValueParser</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i8.html">i8</a>&gt;</h4></section><section id="method.value_parser-5" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2134-2138">source</a></span><a href="#method.value_parser-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-u16" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2140-2147">source</a></span><a href="#impl-ValueParserFactory-for-u16" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u16.html">u16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-7" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.RangedI64ValueParser.html" title="struct clap::builder::RangedI64ValueParser">RangedI64ValueParser</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u16.html">u16</a>&gt;</h4></section><section id="method.value_parser-6" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2142-2146">source</a></span><a href="#method.value_parser-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-i16" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2148-2155">source</a></span><a href="#impl-ValueParserFactory-for-i16" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i16.html">i16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-8" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.RangedI64ValueParser.html" title="struct clap::builder::RangedI64ValueParser">RangedI64ValueParser</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i16.html">i16</a>&gt;</h4></section><section id="method.value_parser-7" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2150-2154">source</a></span><a href="#method.value_parser-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-u32" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2156-2163">source</a></span><a href="#impl-ValueParserFactory-for-u32" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u32.html">u32</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-9" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-9" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.RangedI64ValueParser.html" title="struct clap::builder::RangedI64ValueParser">RangedI64ValueParser</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u32.html">u32</a>&gt;</h4></section><section id="method.value_parser-8" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2158-2162">source</a></span><a href="#method.value_parser-8" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-i32" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2164-2171">source</a></span><a href="#impl-ValueParserFactory-for-i32" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i32.html">i32</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-10" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-10" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.RangedI64ValueParser.html" title="struct clap::builder::RangedI64ValueParser">RangedI64ValueParser</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i32.html">i32</a>&gt;</h4></section><section id="method.value_parser-9" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2166-2170">source</a></span><a href="#method.value_parser-9" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-i64" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2172-2177">source</a></span><a href="#impl-ValueParserFactory-for-i64" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i64.html">i64</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-11" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-11" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.RangedI64ValueParser.html" title="struct clap::builder::RangedI64ValueParser">RangedI64ValueParser</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i64.html">i64</a>&gt;</h4></section><section id="method.value_parser-10" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2174-2176">source</a></span><a href="#method.value_parser-10" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ValueParserFactory-for-u64" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2178-2183">source</a></span><a href="#impl-ValueParserFactory-for-u64" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.ValueParserFactory.html" title="trait clap::builder::ValueParserFactory">ValueParserFactory</a> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u64.html">u64</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Parser-12" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Parser-12" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Parser" class="associatedtype">Parser</a> = <a class="struct" href="struct.RangedU64ValueParser.html" title="struct clap::builder::RangedU64ValueParser">RangedU64ValueParser</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u64.html">u64</a>&gt;</h4></section><section id="method.value_parser-11" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/clap/builder/value_parser.rs.html#2180-2182">source</a></span><a href="#method.value_parser-11" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.value_parser" class="fnname">value_parser</a>() -&gt; Self::<a class="associatedtype" href="trait.ValueParserFactory.html#associatedtype.Parser" title="type clap::builder::ValueParserFactory::Parser">Parser</a></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../../implementors/clap/builder/value_parser/trait.ValueParserFactory.js" data-ignore-extern-crates="alloc,std" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="clap" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>