330 lines
132 KiB
HTML
330 lines
132 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A container for borrowed byte strings converted by this crate."><meta name="keywords" content="rust, rustlang, rust-lang, RawOsStr"><title>RawOsStr in clap_lex - 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 struct"><!--[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="../clap_lex/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="../clap_lex/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">RawOsStr</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.as_raw_bytes">as_raw_bytes</a></li><li><a href="#method.assert_from_raw_bytes">assert_from_raw_bytes</a></li><li><a href="#method.contains">contains</a></li><li><a href="#method.ends_with">ends_with</a></li><li><a href="#method.ends_with_os">ends_with_os</a></li><li><a href="#method.find">find</a></li><li><a href="#method.from_raw_bytes_unchecked">from_raw_bytes_unchecked</a></li><li><a href="#method.from_str">from_str</a></li><li><a href="#method.is_empty">is_empty</a></li><li><a href="#method.new">new</a></li><li><a href="#method.raw_len">raw_len</a></li><li><a href="#method.rfind">rfind</a></li><li><a href="#method.rsplit_once">rsplit_once</a></li><li><a href="#method.split">split</a></li><li><a href="#method.split_at">split_at</a></li><li><a href="#method.split_once">split_once</a></li><li><a href="#method.starts_with">starts_with</a></li><li><a href="#method.starts_with_os">starts_with_os</a></li><li><a href="#method.strip_prefix">strip_prefix</a></li><li><a href="#method.strip_suffix">strip_suffix</a></li><li><a href="#method.to_os_str">to_os_str</a></li><li><a href="#method.to_str">to_str</a></li><li><a href="#method.to_str_lossy">to_str_lossy</a></li><li><a href="#method.trim_end_matches">trim_end_matches</a></li><li><a href="#method.trim_matches">trim_matches</a></li><li><a href="#method.trim_start_matches">trim_start_matches</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3CRawOsStr%3E-for-RawOsStr">AsRef<RawOsStr></a></li><li><a href="#impl-AsRef%3CRawOsStr%3E-for-RawOsString">AsRef<RawOsStr></a></li><li><a href="#impl-AsRef%3CRawOsStr%3E-for-str">AsRef<RawOsStr></a></li><li><a href="#impl-Borrow%3CRawOsStr%3E-for-RawOsString">Borrow<RawOsStr></a></li><li><a href="#impl-Debug-for-RawOsStr">Debug</a></li><li><a href="#impl-Default-for-%26RawOsStr">Default</a></li><li><a href="#impl-Eq-for-RawOsStr">Eq</a></li><li><a href="#impl-Hash-for-RawOsStr">Hash</a></li><li><a href="#impl-Index%3CRange%3Cusize%3E%3E-for-RawOsStr">Index<Range<usize>></a></li><li><a href="#impl-Index%3CRangeFrom%3Cusize%3E%3E-for-RawOsStr">Index<RangeFrom<usize>></a></li><li><a href="#impl-Index%3CRangeFull%3E-for-RawOsStr">Index<RangeFull></a></li><li><a href="#impl-Index%3CRangeInclusive%3Cusize%3E%3E-for-RawOsStr">Index<RangeInclusive<usize>></a></li><li><a href="#impl-Index%3CRangeTo%3Cusize%3E%3E-for-RawOsStr">Index<RangeTo<usize>></a></li><li><a href="#impl-Index%3CRangeToInclusive%3Cusize%3E%3E-for-RawOsStr">Index<RangeToInclusive<usize>></a></li><li><a href="#impl-Ord-for-RawOsStr">Ord</a></li><li><a href="#impl-PartialEq%3C%26RawOsStr%3E-for-RawOsString">PartialEq<&RawOsStr></a></li><li><a href="#impl-PartialEq%3CRawOsStr%3E-for-RawOsStr">PartialEq<RawOsStr></a></li><li><a href="#impl-PartialEq%3CRawOsStr%3E-for-RawOsString">PartialEq<RawOsStr></a></li><li><a href="#impl-PartialEq%3CRawOsStr%3E-for-str">PartialEq<RawOsStr></a></li><li><a href="#impl-PartialEq%3CRawOsString%3E-for-%26RawOsStr">PartialEq<RawOsString></a></li><li><a href="#impl-PartialEq%3CRawOsString%3E-for-RawOsStr">PartialEq<RawOsString></a></li><li><a href="#impl-PartialEq%3CString%3E-for-%26RawOsStr">PartialEq<String></a></li><li><a href="#impl-PartialEq%3CString%3E-for-RawOsStr">PartialEq<String></a></li><li><a href="#impl-PartialEq%3Cstr%3E-for-RawOsStr">PartialEq<str></a></li><li><a href="#impl-PartialOrd%3CRawOsStr%3E-for-RawOsStr">PartialOrd<RawOsStr></a></li><li><a href="#impl-StructuralEq-for-RawOsStr">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq-for-RawOsStr">StructuralPartialEq</a></li><li><a href="#impl-ToOwned-for-RawOsStr">ToOwned</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe-for-RawOsStr">RefUnwindSafe</a></li><li><a href="#impl-Send-for-RawOsStr">Send</a></li><li><a href="#impl-Sized-for-RawOsStr">!Sized</a></li><li><a href="#impl-Sync-for-RawOsStr">Sync</a></li><li><a href="#impl-Unpin-for-RawOsStr">Unpin</a></li><li><a href="#impl-UnwindSafe-for-RawOsStr">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any-for-RawOsStr">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-RawOsStr">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-RawOsStr">BorrowMut<T></a></li></ul></div></section><h2 class="location"><a href="index.html">In clap_lex</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../clap_lex/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">Struct <a href="index.html">clap_lex</a>::<wbr><a class="struct" href="#">RawOsStr</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/os_str_bytes/raw_str.rs.html#106">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 struct"><code><div class="code-attribute">#[repr(transparent)]</div>pub struct RawOsStr(_);</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A container for borrowed byte strings converted by this crate.</p>
|
||
<p>This wrapper is intended to prevent violating the invariants of the
|
||
<a href="../os_str_bytes/index.html#encoding">unspecified encoding</a> used by this crate and minimize encoding
|
||
conversions.</p>
|
||
<h2 id="indices"><a href="#indices">Indices</a></h2>
|
||
<p>Methods of this struct that accept indices require that the index lie on a
|
||
UTF-8 boundary. Although it is possible to manipulate platform strings
|
||
based on other indices, this crate currently does not support them for
|
||
slicing methods. They would add significant complication to the
|
||
implementation and are generally not necessary. However, all indices
|
||
returned by this struct can be used for slicing.</p>
|
||
<p>On Unix, all indices are permitted, to avoid false positives. However,
|
||
relying on this implementation detail is discouraged. Platform-specific
|
||
indices are error-prone.</p>
|
||
<h2 id="complexity"><a href="#complexity">Complexity</a></h2>
|
||
<p>All searching methods have worst-case multiplicative time complexity (i.e.,
|
||
<code>O(self.raw_len() * pat.len())</code>). Enabling the “memchr” feature allows
|
||
these methods to instead run in linear time in the worst case (documented
|
||
for <a href="memchr::memmem::find#complexity"><code>memchr::memmem::find</code></a>).</p>
|
||
<h2 id="safety"><a href="#safety">Safety</a></h2>
|
||
<p>Although this type is annotated with <code>#[repr(transparent)]</code>, the inner
|
||
representation is not stable. Transmuting between this type and any other
|
||
causes immediate undefined behavior.</p>
|
||
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#108">source</a></span><a href="#impl-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#137">source</a></span><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(string: &<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsStr.html" title="struct std::ffi::os_str::OsStr">OsStr</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>></h4></section></summary><div class="docblock"><p>Converts a platform-native string into a representation that can be
|
||
more easily manipulated.</p>
|
||
<p>This method performs the necessary conversion immediately, so it can be
|
||
expensive to call. It is recommended to continue using the returned
|
||
instance as long as possible (instead of the original <a href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsStr.html" title="OsStr"><code>OsStr</code></a>), to
|
||
avoid repeated conversions.</p>
|
||
<h5 id="examples"><a href="#examples">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::env</span>;
|
||
|
||
<span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">os_string</span> <span class="op">=</span> <span class="ident">env::current_exe</span>()<span class="question-mark">?</span>.<span class="ident">into_os_string</span>();
|
||
<span class="macro">println!</span>(<span class="string">"{:?}"</span>, <span class="ident">RawOsStr::new</span>(<span class="kw-2">&</span><span class="ident">os_string</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_str" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#163">source</a></span><h4 class="code-header">pub fn <a href="#method.from_str" class="fnname">from_str</a>(string: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class="docblock"><p>Wraps a string, without copying or encoding conversion.</p>
|
||
<p>This method is much more efficient than <a href="struct.RawOsStr.html#method.new" title="RawOsStr::new"><code>RawOsStr::new</code></a>, since the
|
||
<a href="../os_str_bytes/index.html#encoding">encoding</a> used by this crate is compatible with UTF-8.</p>
|
||
<h5 id="examples-1"><a href="#examples-1">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">string</span> <span class="op">=</span> <span class="string">"foobar"</span>;
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="ident">string</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">string</span>, <span class="ident">raw</span>);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.assert_from_raw_bytes" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#194">source</a></span><h4 class="code-header">pub fn <a href="#method.assert_from_raw_bytes" class="fnname">assert_from_raw_bytes</a>(string: &[<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>]) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class="docblock"><p>Wraps a byte string, without copying or encoding conversion.</p>
|
||
<h5 id="panics"><a href="#panics">Panics</a></h5>
|
||
<p>Panics if the string is not valid for the <a href="../os_str_bytes/index.html#encoding">unspecified encoding</a> used
|
||
by this crate.</p>
|
||
<h5 id="examples-2"><a href="#examples-2">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::env</span>;
|
||
|
||
<span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">os_string</span> <span class="op">=</span> <span class="ident">env::current_exe</span>()<span class="question-mark">?</span>.<span class="ident">into_os_string</span>();
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::new</span>(<span class="kw-2">&</span><span class="ident">os_string</span>);
|
||
<span class="kw">let</span> <span class="ident">raw_bytes</span> <span class="op">=</span> <span class="ident">raw</span>.<span class="ident">as_raw_bytes</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="kw-2">&</span><span class="kw-2">*</span><span class="ident">raw</span>, <span class="ident">RawOsStr::assert_from_raw_bytes</span>(<span class="ident">raw_bytes</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_raw_bytes_unchecked" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#267">source</a></span><h4 class="code-header">pub unsafe fn <a href="#method.from_raw_bytes_unchecked" class="fnname">from_raw_bytes_unchecked</a>(string: &[<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>]) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class="docblock"><p>Wraps a byte string, without copying or encoding conversion.</p>
|
||
<h5 id="safety-1"><a href="#safety-1">Safety</a></h5>
|
||
<p>The string must be valid for the <a href="../os_str_bytes/index.html#encoding">unspecified encoding</a> used by this
|
||
crate.</p>
|
||
<h5 id="examples-3"><a href="#examples-3">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::env</span>;
|
||
|
||
<span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">os_string</span> <span class="op">=</span> <span class="ident">env::current_exe</span>()<span class="question-mark">?</span>.<span class="ident">into_os_string</span>();
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::new</span>(<span class="kw-2">&</span><span class="ident">os_string</span>);
|
||
<span class="kw">let</span> <span class="ident">raw_bytes</span> <span class="op">=</span> <span class="ident">raw</span>.<span class="ident">as_raw_bytes</span>();
|
||
<span class="macro">assert_eq!</span>(<span class="kw-2">&</span><span class="kw-2">*</span><span class="ident">raw</span>, <span class="kw">unsafe</span> {
|
||
<span class="ident">RawOsStr::from_raw_bytes_unchecked</span>(<span class="ident">raw_bytes</span>)
|
||
});</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_raw_bytes" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#292">source</a></span><h4 class="code-header">pub fn <a href="#method.as_raw_bytes" class="fnname">as_raw_bytes</a>(&self) -> &[<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>]<span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for &[<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>]</span><code class="content"><span class="where fmt-newline">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for &[<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>]</span><span class="where fmt-newline">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for &mut [<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.u8.html">u8</a>]</span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns the byte string stored by this container.</p>
|
||
<p>The returned string will use an <a href="../os_str_bytes/index.html#encoding">unspecified encoding</a>.</p>
|
||
<h5 id="examples-4"><a href="#examples-4">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">string</span> <span class="op">=</span> <span class="string">"foobar"</span>;
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="ident">string</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">string</span>.<span class="ident">as_bytes</span>(), <span class="ident">raw</span>.<span class="ident">as_raw_bytes</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.contains" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#309-311">source</a></span><h4 class="code-header">pub fn <a href="#method.contains" class="fnname">contains</a><P>(&self, pat: P) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.contains" title="str::contains"><code>str::contains</code></a>.</p>
|
||
<h5 id="examples-5"><a href="#examples-5">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert!</span>(<span class="ident">raw</span>.<span class="ident">contains</span>(<span class="string">"oo"</span>));
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">raw</span>.<span class="ident">contains</span>(<span class="string">"of"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ends_with" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#329-331">source</a></span><h4 class="code-header">pub fn <a href="#method.ends_with" class="fnname">ends_with</a><P>(&self, pat: P) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.ends_with" title="str::ends_with"><code>str::ends_with</code></a>.</p>
|
||
<h5 id="examples-6"><a href="#examples-6">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert!</span>(<span class="ident">raw</span>.<span class="ident">ends_with</span>(<span class="string">"bar"</span>));
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">raw</span>.<span class="ident">ends_with</span>(<span class="string">"foo"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ends_with_os" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#352">source</a></span><h4 class="code-header">pub fn <a href="#method.ends_with_os" class="fnname">ends_with_os</a>(&self, pat: &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.ends_with" title="str::ends_with"><code>str::ends_with</code></a> but accepts this type for the pattern.</p>
|
||
<h5 id="examples-7"><a href="#examples-7">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert!</span>(<span class="ident">raw</span>.<span class="ident">ends_with_os</span>(<span class="ident">RawOsStr::from_str</span>(<span class="string">"bar"</span>)));
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">raw</span>.<span class="ident">ends_with_os</span>(<span class="ident">RawOsStr::from_str</span>(<span class="string">"foo"</span>)));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.find" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#369-371">source</a></span><h4 class="code-header">pub fn <a href="#method.find" class="fnname">find</a><P>(&self, pat: P) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.find" title="str::find"><code>str::find</code></a>.</p>
|
||
<h5 id="examples-8"><a href="#examples-8">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">1</span>), <span class="ident">raw</span>.<span class="ident">find</span>(<span class="string">"o"</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, <span class="ident">raw</span>.<span class="ident">find</span>(<span class="string">"of"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_empty" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#391">source</a></span><h4 class="code-header">pub fn <a href="#method.is_empty" class="fnname">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.is_empty" title="str::is_empty"><code>str::is_empty</code></a>.</p>
|
||
<h5 id="examples-9"><a href="#examples-9">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="macro">assert!</span>(<span class="ident">RawOsStr::from_str</span>(<span class="string">""</span>).<span class="ident">is_empty</span>());
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>).<span class="ident">is_empty</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.raw_len" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#417">source</a></span><h4 class="code-header">pub fn <a href="#method.raw_len" class="fnname">raw_len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the length of the byte string stored by this container.</p>
|
||
<p>Only the following assumptions can be made about the result:</p>
|
||
<ul>
|
||
<li>The length of any Unicode character is the length of its UTF-8
|
||
representation (i.e., <a href="https://doc.rust-lang.org/1.64.0/std/primitive.char.html#method.len_utf8" title="char::len_utf8"><code>char::len_utf8</code></a>).</li>
|
||
<li>Splitting a string at a UTF-8 boundary will return two strings with
|
||
lengths that sum to the length of the original string.</li>
|
||
</ul>
|
||
<p>This method may return a different result than would <a href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsStr.html#method.len" title="OsStr::len"><code>OsStr::len</code></a>
|
||
when called on same string, since <a href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsStr.html" title="OsStr"><code>OsStr</code></a> uses an unspecified
|
||
encoding.</p>
|
||
<h5 id="examples-10"><a href="#examples-10">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="macro">assert_eq!</span>(<span class="number">6</span>, <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>).<span class="ident">raw_len</span>());
|
||
<span class="macro">assert_eq!</span>(<span class="number">0</span>, <span class="ident">RawOsStr::from_str</span>(<span class="string">""</span>).<span class="ident">raw_len</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rfind" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#434-436">source</a></span><h4 class="code-header">pub fn <a href="#method.rfind" class="fnname">rfind</a><P>(&self, pat: P) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.rfind" title="str::rfind"><code>str::rfind</code></a>.</p>
|
||
<h5 id="examples-11"><a href="#examples-11">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">2</span>), <span class="ident">raw</span>.<span class="ident">rfind</span>(<span class="string">"o"</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, <span class="ident">raw</span>.<span class="ident">rfind</span>(<span class="string">"of"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.rsplit_once" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#484-486">source</a></span><h4 class="code-header">pub fn <a href="#method.rsplit_once" class="fnname">rsplit_once</a><P>(&self, pat: P) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>, &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>)> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.rsplit_once" title="str::rsplit_once"><code>str::rsplit_once</code></a>.</p>
|
||
<h5 id="examples-12"><a href="#examples-12">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert_eq!</span>(
|
||
<span class="prelude-val">Some</span>((<span class="ident">RawOsStr::from_str</span>(<span class="string">"fo"</span>), <span class="ident">RawOsStr::from_str</span>(<span class="string">"bar"</span>))),
|
||
<span class="ident">raw</span>.<span class="ident">rsplit_once</span>(<span class="string">"o"</span>),
|
||
);
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, <span class="ident">raw</span>.<span class="ident">rsplit_once</span>(<span class="string">"of"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.split" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#540-542">source</a></span><h4 class="code-header">pub fn <a href="#method.split" class="fnname">split</a><P>(&self, pat: P) -> <a class="struct" href="../os_str_bytes/iter/struct.Split.html" title="struct os_str_bytes::iter::Split">Split</a><'_, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.split" title="str::split"><code>str::split</code></a>, but empty patterns are not accepted.</p>
|
||
<h5 id="panics-1"><a href="#panics-1">Panics</a></h5>
|
||
<p>Panics if the pattern is empty.</p>
|
||
<h5 id="examples-13"><a href="#examples-13">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert_eq!</span>([<span class="string">"f"</span>, <span class="string">""</span>, <span class="string">"bar"</span>], <span class="kw-2">*</span><span class="ident">raw</span>.<span class="ident">split</span>(<span class="string">"o"</span>).<span class="ident">collect</span>::<span class="op"><</span><span class="ident">Vec</span><span class="op"><</span><span class="kw">_</span><span class="op">></span><span class="op">></span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.split_at" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#569">source</a></span><h4 class="code-header">pub fn <a href="#method.split_at" class="fnname">split_at</a>(&self, mid: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>) -> (&<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>, &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>)</h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.split_at" title="str::split_at"><code>str::split_at</code></a>.</p>
|
||
<h5 id="panics-2"><a href="#panics-2">Panics</a></h5>
|
||
<p>Panics if the index is not a <a href="#indices">valid boundary</a>.</p>
|
||
<h5 id="examples-14"><a href="#examples-14">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert_eq!</span>(
|
||
((<span class="ident">RawOsStr::from_str</span>(<span class="string">"fo"</span>), <span class="ident">RawOsStr::from_str</span>(<span class="string">"obar"</span>))),
|
||
<span class="ident">raw</span>.<span class="ident">split_at</span>(<span class="number">2</span>),
|
||
);</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.split_once" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#599-601">source</a></span><h4 class="code-header">pub fn <a href="#method.split_once" class="fnname">split_once</a><P>(&self, pat: P) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>, &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>)> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.split_once" title="str::split_once"><code>str::split_once</code></a>.</p>
|
||
<h5 id="examples-15"><a href="#examples-15">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert_eq!</span>(
|
||
<span class="prelude-val">Some</span>((<span class="ident">RawOsStr::from_str</span>(<span class="string">"f"</span>), <span class="ident">RawOsStr::from_str</span>(<span class="string">"obar"</span>))),
|
||
<span class="ident">raw</span>.<span class="ident">split_once</span>(<span class="string">"o"</span>),
|
||
);
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, <span class="ident">raw</span>.<span class="ident">split_once</span>(<span class="string">"of"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.starts_with" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#619-621">source</a></span><h4 class="code-header">pub fn <a href="#method.starts_with" class="fnname">starts_with</a><P>(&self, pat: P) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.starts_with" title="str::starts_with"><code>str::starts_with</code></a>.</p>
|
||
<h5 id="examples-16"><a href="#examples-16">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert!</span>(<span class="ident">raw</span>.<span class="ident">starts_with</span>(<span class="string">"foo"</span>));
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">raw</span>.<span class="ident">starts_with</span>(<span class="string">"bar"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.starts_with_os" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#643">source</a></span><h4 class="code-header">pub fn <a href="#method.starts_with_os" class="fnname">starts_with_os</a>(&self, pat: &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.starts_with" title="str::starts_with"><code>str::starts_with</code></a> but accepts this type for the
|
||
pattern.</p>
|
||
<h5 id="examples-17"><a href="#examples-17">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"foobar"</span>);
|
||
<span class="macro">assert!</span>(<span class="ident">raw</span>.<span class="ident">starts_with_os</span>(<span class="ident">RawOsStr::from_str</span>(<span class="string">"foo"</span>)));
|
||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">raw</span>.<span class="ident">starts_with_os</span>(<span class="ident">RawOsStr::from_str</span>(<span class="string">"bar"</span>)));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.strip_prefix" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#663-665">source</a></span><h4 class="code-header">pub fn <a href="#method.strip_prefix" class="fnname">strip_prefix</a><P>(&self, pat: P) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.strip_prefix" title="str::strip_prefix"><code>str::strip_prefix</code></a>.</p>
|
||
<h5 id="examples-18"><a href="#examples-18">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"111foo1bar111"</span>);
|
||
<span class="macro">assert_eq!</span>(
|
||
<span class="prelude-val">Some</span>(<span class="ident">RawOsStr::from_str</span>(<span class="string">"11foo1bar111"</span>)),
|
||
<span class="ident">raw</span>.<span class="ident">strip_prefix</span>(<span class="string">"1"</span>),
|
||
);
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, <span class="ident">raw</span>.<span class="ident">strip_prefix</span>(<span class="string">"o"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.strip_suffix" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#689-691">source</a></span><h4 class="code-header">pub fn <a href="#method.strip_suffix" class="fnname">strip_suffix</a><P>(&self, pat: P) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.strip_suffix" title="str::strip_suffix"><code>str::strip_suffix</code></a>.</p>
|
||
<h5 id="examples-19"><a href="#examples-19">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"111foo1bar111"</span>);
|
||
<span class="macro">assert_eq!</span>(
|
||
<span class="prelude-val">Some</span>(<span class="ident">RawOsStr::from_str</span>(<span class="string">"111foo1bar11"</span>)),
|
||
<span class="ident">raw</span>.<span class="ident">strip_suffix</span>(<span class="string">"1"</span>),
|
||
);
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, <span class="ident">raw</span>.<span class="ident">strip_suffix</span>(<span class="string">"o"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_os_str" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#720">source</a></span><h4 class="code-header">pub fn <a href="#method.to_os_str" class="fnname">to_os_str</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, <a class="struct" href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsStr.html" title="struct std::ffi::os_str::OsStr">OsStr</a>></h4></section></summary><div class="docblock"><p>Converts this representation back to a platform-native string.</p>
|
||
<p>When possible, use <a href="../os_str_bytes/raw_str/trait.RawOsStrCow.html#tymethod.into_os_str" title="RawOsStrCow::into_os_str"><code>RawOsStrCow::into_os_str</code></a> for a more efficient
|
||
conversion on some platforms.</p>
|
||
<h5 id="examples-20"><a href="#examples-20">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::env</span>;
|
||
|
||
<span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">os_string</span> <span class="op">=</span> <span class="ident">env::current_exe</span>()<span class="question-mark">?</span>.<span class="ident">into_os_string</span>();
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::new</span>(<span class="kw-2">&</span><span class="ident">os_string</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="ident">os_string</span>, <span class="ident">raw</span>.<span class="ident">to_os_str</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_str" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#737">source</a></span><h4 class="code-header">pub fn <a href="#method.to_str" class="fnname">to_str</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsStr.html#method.to_str" title="OsStr::to_str"><code>OsStr::to_str</code></a>.</p>
|
||
<h5 id="examples-21"><a href="#examples-21">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">string</span> <span class="op">=</span> <span class="string">"foobar"</span>;
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="ident">string</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="ident">string</span>), <span class="ident">raw</span>.<span class="ident">to_str</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_str_lossy" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#766">source</a></span><h4 class="code-header">pub fn <a href="#method.to_str_lossy" class="fnname">to_str_lossy</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>></h4></section></summary><div class="docblock"><p>Converts this string to the best UTF-8 representation possible.</p>
|
||
<p>Invalid sequences will be replaced with
|
||
<a href="https://doc.rust-lang.org/1.64.0/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER" title="char::REPLACEMENT_CHARACTER"><code>char::REPLACEMENT_CHARACTER</code></a>.</p>
|
||
<p>This method may return a different result than would
|
||
<a href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsStr.html#method.to_string_lossy" title="OsStr::to_string_lossy"><code>OsStr::to_string_lossy</code></a> when called on same string, since <a href="https://doc.rust-lang.org/1.64.0/std/ffi/os_str/struct.OsStr.html" title="OsStr"><code>OsStr</code></a>
|
||
uses an unspecified encoding.</p>
|
||
<h5 id="examples-22"><a href="#examples-22">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::env</span>;
|
||
|
||
<span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">os_string</span> <span class="op">=</span> <span class="ident">env::current_exe</span>()<span class="question-mark">?</span>.<span class="ident">into_os_string</span>();
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::new</span>(<span class="kw-2">&</span><span class="ident">os_string</span>);
|
||
<span class="macro">println!</span>(<span class="string">"{}"</span>, <span class="ident">raw</span>.<span class="ident">to_str_lossy</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.trim_end_matches" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#807-809">source</a></span><h4 class="code-header">pub fn <a href="#method.trim_end_matches" class="fnname">trim_end_matches</a><P>(&self, pat: P) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.trim_end_matches" title="str::trim_end_matches"><code>str::trim_end_matches</code></a>.</p>
|
||
<h5 id="examples-23"><a href="#examples-23">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"111foo1bar111"</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="string">"111foo1bar"</span>, <span class="ident">raw</span>.<span class="ident">trim_end_matches</span>(<span class="string">"1"</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="string">"111foo1bar111"</span>, <span class="ident">raw</span>.<span class="ident">trim_end_matches</span>(<span class="string">"o"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.trim_matches" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#827-829">source</a></span><h4 class="code-header">pub fn <a href="#method.trim_matches" class="fnname">trim_matches</a><P>(&self, pat: P) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.trim_matches" title="str::trim_matches"><code>str::trim_matches</code></a>.</p>
|
||
<h5 id="examples-24"><a href="#examples-24">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"111foo1bar111"</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="string">"foo1bar"</span>, <span class="ident">raw</span>.<span class="ident">trim_matches</span>(<span class="string">"1"</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="string">"111foo1bar111"</span>, <span class="ident">raw</span>.<span class="ident">trim_matches</span>(<span class="string">"o"</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.trim_start_matches" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#855-857">source</a></span><h4 class="code-header">pub fn <a href="#method.trim_start_matches" class="fnname">trim_start_matches</a><P>(&self, pat: P) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="../os_str_bytes/pattern/trait.Pattern.html" title="trait os_str_bytes::pattern::Pattern">Pattern</a>, </span></h4></section></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html#method.trim_start_matches" title="str::trim_start_matches"><code>str::trim_start_matches</code></a>.</p>
|
||
<h5 id="examples-25"><a href="#examples-25">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">os_str_bytes::RawOsStr</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsStr::from_str</span>(<span class="string">"111foo1bar111"</span>);
|
||
<span class="macro">assert_eq!</span>(<span class="string">"foo1bar111"</span>, <span class="ident">raw</span>.<span class="ident">trim_start_matches</span>(<span class="string">"1"</span>));
|
||
<span class="macro">assert_eq!</span>(<span class="string">"111foo1bar111"</span>, <span class="ident">raw</span>.<span class="ident">trim_start_matches</span>(<span class="string">"o"</span>));</code></pre></div>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3CRawOsStr%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#863">source</a></span><a href="#impl-AsRef%3CRawOsStr%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#865">source</a></span><a href="#method.as_ref-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3CRawOsStr%3E-for-RawOsString" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1309">source</a></span><a href="#impl-AsRef%3CRawOsStr%3E-for-RawOsString" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1311">source</a></span><a href="#method.as_ref-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3CRawOsStr%3E-for-str" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#870">source</a></span><a href="#impl-AsRef%3CRawOsStr%3E-for-str" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#872">source</a></span><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Borrow%3CRawOsStr%3E-for-RawOsString" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1316">source</a></span><a href="#impl-Borrow%3CRawOsStr%3E-for-RawOsString" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1318">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1414">source</a></span><a href="#impl-Debug-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1414">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default-for-%26RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#884">source</a></span><a href="#impl-Default-for-%26RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#886">source</a></span><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.64.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Hash-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#impl-Hash-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#method.hash" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a><__H>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>__H) <span class="where fmt-newline">where<br> __H: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></h4></section></summary><div class='docblock'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/hash/mod.rs.html#237-239">source</a></span><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a><H>(data: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.slice.html">[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></h4></section></summary><div class='docblock'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.64.0/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3CRange%3Cusize%3E%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1444">source</a></span><a href="#impl-Index%3CRange%3Cusize%3E%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-5" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index-5" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1444">source</a></span><a href="#method.index-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>(&self, idx: <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>) -> &<<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></section></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3CRangeFrom%3Cusize%3E%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1445">source</a></span><a href="#impl-Index%3CRangeFrom%3Cusize%3E%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeFrom.html" title="struct core::ops::range::RangeFrom">RangeFrom</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index-4" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1445">source</a></span><a href="#method.index-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>(<br> &self,<br> idx: <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeFrom.html" title="struct core::ops::range::RangeFrom">RangeFrom</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>><br>) -> &<<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeFrom.html" title="struct core::ops::range::RangeFrom">RangeFrom</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></section></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3CRangeFull%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1446">source</a></span><a href="#impl-Index%3CRangeFull%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1446">source</a></span><a href="#method.index-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>(&self, idx: <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>) -> &<<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></section></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3CRangeInclusive%3Cusize%3E%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1449">source</a></span><a href="#impl-Index%3CRangeInclusive%3Cusize%3E%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeInclusive.html" title="struct core::ops::range::RangeInclusive">RangeInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1449">source</a></span><a href="#method.index" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>(<br> &self,<br> idx: <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeInclusive.html" title="struct core::ops::range::RangeInclusive">RangeInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>><br>) -> &<<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeInclusive.html" title="struct core::ops::range::RangeInclusive">RangeInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></section></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3CRangeTo%3Cusize%3E%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1450">source</a></span><a href="#impl-Index%3CRangeTo%3Cusize%3E%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeTo.html" title="struct core::ops::range::RangeTo">RangeTo</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-2" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1450">source</a></span><a href="#method.index-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>(<br> &self,<br> idx: <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeTo.html" title="struct core::ops::range::RangeTo">RangeTo</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>><br>) -> &<<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeTo.html" title="struct core::ops::range::RangeTo">RangeTo</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></section></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3CRangeToInclusive%3Cusize%3E%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1451">source</a></span><a href="#impl-Index%3CRangeToInclusive%3Cusize%3E%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeToInclusive.html" title="struct core::ops::range::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-3" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h4></section></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1451">source</a></span><a href="#method.index-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>(<br> &self,<br> idx: <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeToInclusive.html" title="struct core::ops::range::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>><br>) -> &<<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/core/ops/range/struct.RangeToInclusive.html" title="struct core::ops::range::RangeToInclusive">RangeToInclusive</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a>>>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></section></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ord-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#impl-Ord-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&self, other: &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/1.64.0/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#800-803">source</a></span><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.min" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#827-830">source</a></span><a href="#method.min" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.min" class="fnname">min</a>(self, other: Self) -> Self</h4></section></summary><div class='docblock'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.min">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clamp" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.50.0">1.50.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#859-863">source</a></span><a href="#method.clamp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.clamp" class="fnname">clamp</a>(self, min: Self, max: Self) -> Self <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><Self>, </span></h4></section></summary><div class='docblock'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26RawOsStr%3E-for-RawOsString" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1473">source</a></span><a href="#impl-PartialEq%3C%26RawOsStr%3E-for-RawOsString" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1473">source</a></span><a href="#method.eq-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &&<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-3" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CRawOsStr%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#impl-PartialEq%3CRawOsStr%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-5" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#method.eq-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-5" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#method.ne-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CRawOsStr%3E-for-RawOsString" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1472">source</a></span><a href="#impl-PartialEq%3CRawOsStr%3E-for-RawOsString" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1472">source</a></span><a href="#method.eq-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-2" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CRawOsStr%3E-for-str" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1474">source</a></span><a href="#impl-PartialEq%3CRawOsStr%3E-for-str" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1474">source</a></span><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CRawOsString%3E-for-%26RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1473">source</a></span><a href="#impl-PartialEq%3CRawOsString%3E-for-%26RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a>> for &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-7" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1473">source</a></span><a href="#method.eq-7" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-7" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne-7" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CRawOsString%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1472">source</a></span><a href="#impl-PartialEq%3CRawOsString%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1472">source</a></span><a href="#method.eq-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-1" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CString%3E-for-%26RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1476">source</a></span><a href="#impl-PartialEq%3CString%3E-for-%26RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-6" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1476">source</a></span><a href="#method.eq-6" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-6" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne-6" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CString%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1475">source</a></span><a href="#impl-PartialEq%3CString%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-8" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1475">source</a></span><a href="#method.eq-8" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-8" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne-8" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cstr%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1474">source</a></span><a href="#impl-PartialEq%3Cstr%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-4" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1474">source</a></span><a href="#method.eq-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-4" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#232">source</a></span><a href="#method.ne-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CRawOsStr%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#impl-PartialOrd%3CRawOsStr%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#method.partial_cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fnname">partial_cmp</a>(&self, other: &<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>></h4></section></summary><div class='docblock'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#1122">source</a></span><a href="#method.lt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.lt" class="fnname">lt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#1141">source</a></span><a href="#method.le" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.le" class="fnname">le</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code><=</code>
|
||
operator. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#1163">source</a></span><a href="#method.gt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.gt" class="fnname">gt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code> operator. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/cmp.rs.html#1182">source</a></span><a href="#method.ge" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.ge" class="fnname">ge</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>>=</code>
|
||
operator. <a href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ToOwned-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#905">source</a></span><a href="#impl-ToOwned-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = <a class="struct" href="struct.RawOsString.html" title="struct clap_lex::RawOsString">RawOsString</a></h4></section></summary><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#909">source</a></span><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> <<a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a> as <a class="trait" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class='docblock'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.63.0">1.63.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#77">source</a></span><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: &mut Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>)</h4></section></summary><div class='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||
</div></details></div></details><section id="impl-Eq-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#impl-Eq-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section><section id="impl-StructuralEq-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#impl-StructuralEq-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section><section id="impl-StructuralPartialEq-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#103">source</a></span><a href="#impl-StructuralPartialEq-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-RawOsStr" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section><section id="impl-Send-for-RawOsStr" class="impl has-srclink"><a href="#impl-Send-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section><section id="impl-Sized-for-RawOsStr" class="impl has-srclink"><a href="#impl-Sized-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section><section id="impl-Sync-for-RawOsStr" class="impl has-srclink"><a href="#impl-Sync-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section><section id="impl-Unpin-for-RawOsStr" class="impl has-srclink"><a href="#impl-Unpin-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section><section id="impl-UnwindSafe-for-RawOsStr" class="impl has-srclink"><a href="#impl-UnwindSafe-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.RawOsStr.html" title="struct clap_lex::RawOsStr">RawOsStr</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#203">source</a></span><a href="#impl-Any-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#209">source</a></span><a href="#impl-Borrow%3CT%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow-1" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-RawOsStr" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#218">source</a></span><a href="#impl-BorrowMut%3CT%3E-for-RawOsStr" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="clap_lex" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html> |