346 lines
148 KiB
HTML
346 lines
148 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 the byte strings converted by [`OsStringBytes`]."><meta name="keywords" content="rust, rustlang, rust-lang, RawOsString"><title>RawOsString in os_str_bytes - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.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="sidebar"><div class="sidebar-menu" role="button">☰</div><a class="sidebar-logo" href="../os_str_bytes/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.png" alt="logo"></div>
|
||
</a><h2 class="location">Struct RawOsString</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><div class="sidebar-links"><a href="#method.from_string">from_string</a><a href="#method.into_os_string">into_os_string</a><a href="#method.into_raw_vec">into_raw_vec</a><a href="#method.into_string">into_string</a><a href="#method.new">new</a></div><h3 class="sidebar-title"><a href="#deref-methods-RawOsStr">Methods from Deref<Target=RawOsStr></a></h3><div class="sidebar-links"><a href="#method.as_raw_bytes">as_raw_bytes</a><a href="#method.contains">contains</a><a href="#method.ends_with">ends_with</a><a href="#method.ends_with_os">ends_with_os</a><a href="#method.find">find</a><a href="#method.is_empty">is_empty</a><a href="#method.raw_len">raw_len</a><a href="#method.rfind">rfind</a><a href="#method.rsplit_once">rsplit_once</a><a href="#method.split">split</a><a href="#method.split_at">split_at</a><a href="#method.split_once">split_once</a><a href="#method.starts_with">starts_with</a><a href="#method.starts_with_os">starts_with_os</a><a href="#method.strip_prefix">strip_prefix</a><a href="#method.strip_suffix">strip_suffix</a><a href="#method.to_os_str">to_os_str</a><a href="#method.to_str">to_str</a><a href="#method.to_str_lossy">to_str_lossy</a><a href="#method.trim_end_matches">trim_end_matches</a><a href="#method.trim_start_matches">trim_start_matches</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-AsRef%3CRawOsStr%3E">AsRef<RawOsStr></a><a href="#impl-Borrow%3CRawOsStr%3E">Borrow<RawOsStr></a><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Deref">Deref</a><a href="#impl-Eq">Eq</a><a href="#impl-From%3CRawOsString%3E">From<RawOsString></a><a href="#impl-From%3CString%3E">From<String></a><a href="#impl-Hash">Hash</a><a href="#impl-Index%3CRange%3Cusize%3E%3E">Index<Range<usize>></a><a href="#impl-Index%3CRangeFrom%3Cusize%3E%3E">Index<RangeFrom<usize>></a><a href="#impl-Index%3CRangeFull%3E">Index<RangeFull></a><a href="#impl-Index%3CRangeInclusive%3Cusize%3E%3E">Index<RangeInclusive<usize>></a><a href="#impl-Index%3CRangeTo%3Cusize%3E%3E">Index<RangeTo<usize>></a><a href="#impl-Index%3CRangeToInclusive%3Cusize%3E%3E">Index<RangeToInclusive<usize>></a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3C%26%27_%20RawOsStr%3E">PartialEq<&'_ RawOsStr></a><a href="#impl-PartialEq%3C%26%27_%20str%3E">PartialEq<&'_ str></a><a href="#impl-PartialEq%3CRawOsStr%3E">PartialEq<RawOsStr></a><a href="#impl-PartialEq%3CRawOsString%3E">PartialEq<RawOsString></a><a href="#impl-PartialEq%3CString%3E">PartialEq<String></a><a href="#impl-PartialEq%3Cstr%3E">PartialEq<str></a><a href="#impl-PartialOrd%3CRawOsString%3E">PartialOrd<RawOsString></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><h2 class="location">Other items in<br><a href="index.html">os_str_bytes</a></h2><div id="sidebar-vars" data-name="RawOsString" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../os_str_bytes/index.html"><img class="rust-logo" src="../rust-logo.png" alt="logo"></a><nav class="sub"><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="index.html">os_str_bytes</a>::<wbr><a class="struct" href="#">RawOsString</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><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#835" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust struct"><code>pub struct RawOsString(_);</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 the byte strings converted by <a href="trait.OsStringBytes.html" title="OsStringBytes"><code>OsStringBytes</code></a>.</p>
|
||
<p>For more information, see <a href="struct.RawOsStr.html" title="RawOsStr"><code>RawOsStr</code></a>.</p>
|
||
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#837-947" title="goto source code">[src]</a></div><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.new" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#858-860" title="goto source code">[src]</a></div><a href="#method.new" class="anchor"></a><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.59.0/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>) -> Self</h4></div></summary><div class="docblock"><p>Converts a platform-native string into a representation that can be
|
||
more easily manipulated.</p>
|
||
<p>For more information, see <a href="struct.RawOsStr.html#method.new" title="RawOsStr::new"><code>RawOsStr::new</code></a>.</p>
|
||
<h5 id="examples" class="section-header"><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::RawOsString</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">RawOsString::new</span>(<span class="ident">os_string</span>));</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_string" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#880-882" title="goto source code">[src]</a></div><a href="#method.from_string" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.from_string" class="fnname">from_string</a>(string: <a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> Self</h4></div></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.RawOsString.html#method.new" title="RawOsString::new"><code>RawOsString::new</code></a>, since the
|
||
<a href="index.html#encoding">encoding</a> used by this crate is compatible with UTF-8.</p>
|
||
<h5 id="examples-1" class="section-header"><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::RawOsString</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">string</span> <span class="op">=</span> <span class="string">"foobar"</span>.<span class="ident">to_owned</span>();
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsString::from_string</span>(<span class="ident">string</span>.<span class="ident">clone</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><div id="method.into_os_string" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#902-904" title="goto source code">[src]</a></div><a href="#method.into_os_string" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.into_os_string" class="fnname">into_os_string</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.59.0/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a></h4></div></summary><div class="docblock"><p>Converts this representation back to a platform-native string.</p>
|
||
<h5 id="examples-2" class="section-header"><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::RawOsString</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">RawOsString::new</span>(<span class="ident">os_string</span>.<span class="ident">clone</span>());
|
||
<span class="macro">assert_eq!</span>(<span class="ident">os_string</span>, <span class="ident">raw</span>.<span class="ident">into_os_string</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into_raw_vec" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#928-930" title="goto source code">[src]</a></div><a href="#method.into_raw_vec" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.into_raw_vec" class="fnname">into_raw_vec</a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a>></h4></div></summary><div class="docblock"><p>Returns the byte string stored by this container.</p>
|
||
<p>The result will match what would be returned by
|
||
<a href="trait.OsStringBytes.html#tymethod.into_raw_vec" title="OsStringBytes::into_raw_vec"><code>OsStringBytes::into_raw_vec</code></a> for the same string.</p>
|
||
<h5 id="examples-3" class="section-header"><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::OsStringBytes</span>;
|
||
<span class="kw">use</span> <span class="ident">os_str_bytes::RawOsString</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">RawOsString::new</span>(<span class="ident">os_string</span>.<span class="ident">clone</span>());
|
||
<span class="macro">assert_eq!</span>(<span class="ident">os_string</span>.<span class="ident">into_raw_vec</span>(), <span class="ident">raw</span>.<span class="ident">into_raw_vec</span>());</code></pre></div>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into_string" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#944-946" title="goto source code">[src]</a></div><a href="#method.into_string" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.into_string" class="fnname">into_string</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, Self></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/ffi/os_str/struct.OsString.html#method.into_string" title="OsString::into_string"><code>OsString::into_string</code></a>.</p>
|
||
<h5 id="examples-4" class="section-header"><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::RawOsString</span>;
|
||
|
||
<span class="kw">let</span> <span class="ident">string</span> <span class="op">=</span> <span class="string">"foobar"</span>.<span class="ident">to_owned</span>();
|
||
<span class="kw">let</span> <span class="ident">raw</span> <span class="op">=</span> <span class="ident">RawOsString::from_string</span>(<span class="ident">string</span>.<span class="ident">clone</span>());
|
||
<span class="macro">assert_eq!</span>(<span class="prelude-val">Ok</span>(<span class="ident">string</span>), <span class="ident">raw</span>.<span class="ident">into_string</span>());</code></pre></div>
|
||
</div></details></div></details><h2 id="deref-methods-RawOsStr" class="small-section-header"><span>Methods from <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>></span><a href="#deref-methods-RawOsStr" class="anchor"></a></h2><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.as_raw_bytes" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#203-205" title="goto source code">[src]</a></div><a href="#method.as_raw_bytes" class="anchor"></a><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.59.0/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<div class="notable-traits-tooltiptext"><span class="docblock"><div class="notable">Notable traits for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&'_ [</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a></div><code class="content"><span class="where fmt-newline">impl<'_> <a class="trait" href="https://doc.rust-lang.org/1.59.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&'_ [</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a></span><span class="where fmt-newline">impl<'_> <a class="trait" href="https://doc.rust-lang.org/1.59.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">&'_ mut [</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.slice.html">]</a></span></code></span></div></span></span></h4></div></summary><div class="docblock"><p>Returns the byte string stored by this container.</p>
|
||
<p>The result will match what would be returned by
|
||
<a href="trait.OsStrBytes.html#tymethod.to_raw_bytes" title="OsStrBytes::to_raw_bytes"><code>OsStrBytes::to_raw_bytes</code></a> for the same string.</p>
|
||
<h5 id="examples-5" class="section-header"><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">std::env</span>;
|
||
|
||
<span class="kw">use</span> <span class="ident">os_str_bytes::OsStrBytes</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">to_raw_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><div id="method.contains" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#224-229" title="goto source code">[src]</a></div><a href="#method.contains" class="anchor"></a><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.59.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.contains" title="str::contains"><code>str::contains</code></a>.</p>
|
||
<h5 id="panics" class="section-header"><a href="#panics">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-6" class="section-header"><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">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><div id="method.ends_with" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#248-256" title="goto source code">[src]</a></div><a href="#method.ends_with" class="anchor"></a><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.59.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.ends_with" title="str::ends_with"><code>str::ends_with</code></a>.</p>
|
||
<h5 id="panics-1" class="section-header"><a href="#panics-1">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-7" class="section-header"><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</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><div id="method.ends_with_os" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#275-277" title="goto source code">[src]</a></div><a href="#method.ends_with_os" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.ends_with_os" class="fnname">ends_with_os</a>(&self, pat: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.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="panics-2" class="section-header"><a href="#panics-2">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-8" class="section-header"><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!</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><div id="method.find" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#296-304" title="goto source code">[src]</a></div><a href="#method.find" class="anchor"></a><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.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.find" title="str::find"><code>str::find</code></a>.</p>
|
||
<h5 id="panics-3" class="section-header"><a href="#panics-3">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-9" class="section-header"><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="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><div id="method.is_empty" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#318-320" title="goto source code">[src]</a></div><a href="#method.is_empty" class="anchor"></a><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.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.is_empty" title="str::is_empty"><code>str::is_empty</code></a>.</p>
|
||
<h5 id="examples-10" class="section-header"><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!</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><div id="method.raw_len" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#344-346" title="goto source code">[src]</a></div><a href="#method.raw_len" class="anchor"></a><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.59.0/std/primitive.usize.html">usize</a></h4></div></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.59.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.59.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.59.0/std/ffi/os_str/struct.OsStr.html" title="OsStr"><code>OsStr</code></a> uses an unspecified
|
||
encoding.</p>
|
||
<h5 id="examples-11" class="section-header"><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="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><div id="method.rfind" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#365-373" title="goto source code">[src]</a></div><a href="#method.rfind" class="anchor"></a><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.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.rfind" title="str::rfind"><code>str::rfind</code></a>.</p>
|
||
<h5 id="panics-4" class="section-header"><a href="#panics-4">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-12" class="section-header"><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="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><div id="method.rsplit_once" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#402-407" title="goto source code">[src]</a></div><a href="#method.rsplit_once" class="anchor"></a><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.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.tuple.html">)</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.rsplit_once" title="str::rsplit_once"><code>str::rsplit_once</code></a>.</p>
|
||
<h5 id="panics-5" class="section-header"><a href="#panics-5">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-13" class="section-header"><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="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><div id="method.split" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#458-463" title="goto source code">[src]</a></div><a href="#method.split" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.split" class="fnname">split</a><P>(&self, pat: P) -> <a class="struct" href="iter/struct.Split.html" title="struct os_str_bytes::iter::Split">Split</a><'_, P><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<div class="notable-traits-tooltiptext"><span class="docblock"><div class="notable">Notable traits for <a class="struct" href="iter/struct.Split.html" title="struct os_str_bytes::iter::Split">Split</a><'a, P></div><code class="content"><span class="where fmt-newline">impl<'a, P> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="iter/struct.Split.html" title="struct os_str_bytes::iter::Split">Split</a><'a, P> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.59.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = &'a <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>;</span></code></span></div></span></span> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.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-6" class="section-header"><a href="#panics-6">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range or empty.</p>
|
||
<h5 id="examples-14" class="section-header"><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="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><div id="method.split_at" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#486-494" title="goto source code">[src]</a></div><a href="#method.split_at" class="anchor"></a><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.59.0/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.tuple.html">)</a></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.split_at" title="str::split_at"><code>str::split_at</code></a>.</p>
|
||
<h5 id="panics-7" class="section-header"><a href="#panics-7">Panics</a></h5>
|
||
<p>Panics if the index is not a <a href="#indices">valid boundary</a>.</p>
|
||
<h5 id="examples-15" class="section-header"><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="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><div id="method.split_once" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#523-528" title="goto source code">[src]</a></div><a href="#method.split_once" class="anchor"></a><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.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.tuple.html">)</a>> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.split_once" title="str::split_once"><code>str::split_once</code></a>.</p>
|
||
<h5 id="panics-8" class="section-header"><a href="#panics-8">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-16" class="section-header"><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_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><div id="method.starts_with" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#547-555" title="goto source code">[src]</a></div><a href="#method.starts_with" class="anchor"></a><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.59.0/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.starts_with" title="str::starts_with"><code>str::starts_with</code></a>.</p>
|
||
<h5 id="panics-9" class="section-header"><a href="#panics-9">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-17" class="section-header"><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</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><div id="method.starts_with_os" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#575-577" title="goto source code">[src]</a></div><a href="#method.starts_with_os" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.starts_with_os" class="fnname">starts_with_os</a>(&self, pat: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.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="panics-10" class="section-header"><a href="#panics-10">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-18" class="section-header"><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">"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><div id="method.strip_prefix" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#599-607" title="goto source code">[src]</a></div><a href="#method.strip_prefix" class="anchor"></a><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.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.strip_prefix" title="str::strip_prefix"><code>str::strip_prefix</code></a>.</p>
|
||
<h5 id="panics-11" class="section-header"><a href="#panics-11">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-19" class="section-header"><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">"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><div id="method.strip_suffix" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#629-637" title="goto source code">[src]</a></div><a href="#method.strip_suffix" class="anchor"></a><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.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self> <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.strip_suffix" title="str::strip_suffix"><code>str::strip_suffix</code></a>.</p>
|
||
<h5 id="panics-12" class="section-header"><a href="#panics-12">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-20" class="section-header"><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">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><div id="method.to_os_str" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#657-659" title="goto source code">[src]</a></div><a href="#method.to_os_str" class="anchor"></a><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.59.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, <a class="struct" href="https://doc.rust-lang.org/1.59.0/std/ffi/os_str/struct.OsStr.html" title="struct std::ffi::os_str::OsStr">OsStr</a>></h4></div></summary><div class="docblock"><p>Converts this representation back to a platform-native string.</p>
|
||
<h5 id="examples-21" class="section-header"><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">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><div id="method.to_str" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#674-676" title="goto source code">[src]</a></div><a href="#method.to_str" class="anchor"></a><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.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.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-22" class="section-header"><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">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><div id="method.to_str_lossy" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#703-705" title="goto source code">[src]</a></div><a href="#method.to_str_lossy" class="anchor"></a><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.59.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>></h4></div></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.59.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.59.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.59.0/std/ffi/os_str/struct.OsStr.html" title="OsStr"><code>OsStr</code></a>
|
||
uses an unspecified encoding.</p>
|
||
<h5 id="examples-23" class="section-header"><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">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><div id="method.trim_end_matches" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#723-728" title="goto source code">[src]</a></div><a href="#method.trim_end_matches" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.trim_end_matches" class="fnname">trim_end_matches</a><P>(&self, pat: P) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.trim_end_matches" title="str::trim_end_matches"><code>str::trim_end_matches</code></a>.</p>
|
||
<h5 id="panics-13" class="section-header"><a href="#panics-13">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-24" class="section-header"><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">"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><div id="method.trim_start_matches" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#746-751" title="goto source code">[src]</a></div><a href="#method.trim_start_matches" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.trim_start_matches" class="fnname">trim_start_matches</a><P>(&self, pat: P) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self <span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pattern.html" title="trait os_str_bytes::Pattern">Pattern</a>, </span></h4></div></summary><div class="docblock"><p>Equivalent to <a href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html#method.trim_start_matches" title="str::trim_start_matches"><code>str::trim_start_matches</code></a>.</p>
|
||
<h5 id="panics-14" class="section-header"><a href="#panics-14">Panics</a></h5>
|
||
<p>Panics if the pattern is a byte outside of the ASCII range.</p>
|
||
<h5 id="examples-25" class="section-header"><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><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><div id="impl-AsRef%3CRawOsStr%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#949-954" title="goto source code">[src]</a></div><a href="#impl-AsRef%3CRawOsStr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.as_ref" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#951-953" title="goto source code">[src]</a></div><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Borrow%3CRawOsStr%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#956-961" title="goto source code">[src]</a></div><a href="#impl-Borrow%3CRawOsStr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><<a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#958-960" title="goto source code">[src]</a></div><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> &<a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Clone" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h4></div></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_from" class="method trait-impl has-srclink"><div 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.59.0/src/core/clone.rs.html#130" title="goto source code">[src]</a></div><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Self)</h4></div></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Debug" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1060" title="goto source code">[src]</a></div><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.fmt" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1060" title="goto source code">[src]</a></div><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.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.59.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.59.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></div></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.59.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Default" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-Default" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.default" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -> <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h4></div></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.59.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Deref" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#963-970" title="goto source code">[src]</a></div><a href="#impl-Deref" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Target" class="type trait-impl has-srclink"><a href="#associatedtype.Target" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/ops/deref/trait.Deref.html#associatedtype.Target" class="associatedtype">Target</a> = <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>The resulting type after dereferencing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.deref" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#967-969" title="goto source code">[src]</a></div><a href="#method.deref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/ops/deref/trait.Deref.html#tymethod.deref" class="fnname">deref</a>(&self) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></h4></div></summary><div class='docblock'><p>Dereferences the value.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CRawOsString%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#979-984" title="goto source code">[src]</a></div><a href="#impl-From%3CRawOsString%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>> for <a class="enum" href="https://doc.rust-lang.org/1.59.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a><'_, <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#981-983" title="goto source code">[src]</a></div><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(other: <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CString%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#972-977" title="goto source code">[src]</a></div><a href="#impl-From%3CString%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#974-976" title="goto source code">[src]</a></div><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(other: <a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> Self</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Hash" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-Hash" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.hash" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#method.hash" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a><__H: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&mut </a>__H)</h4></div></summary><div class='docblock'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.hash_slice" class="method trait-impl has-srclink"><div 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.59.0/src/core/hash/mod.rs.html#237-239" title="goto source code">[src]</a></div><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.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.59.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.59.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.59.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></h4></div></summary><div class='docblock'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.59.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.59.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><div id="impl-Index%3CRange%3Cusize%3E%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#998" title="goto source code">[src]</a></div><a href="#impl-Index%3CRange%3Cusize%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output" class="type trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.index" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#998" title="goto source code">[src]</a></div><a href="#method.index" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></div></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.59.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><div id="impl-Index%3CRangeFrom%3Cusize%3E%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#999" title="goto source code">[src]</a></div><a href="#impl-Index%3CRangeFrom%3Cusize%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-1" class="type 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.59.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.index-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#999" title="goto source code">[src]</a></div><a href="#method.index-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></div></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.59.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><div id="impl-Index%3CRangeFull%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1000" title="goto source code">[src]</a></div><a href="#impl-Index%3CRangeFull%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.0/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-2" class="type 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.59.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.index-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1000" title="goto source code">[src]</a></div><a href="#method.index-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.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.59.0/core/ops/range/struct.RangeFull.html" title="struct core::ops::range::RangeFull">RangeFull</a>) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></div></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.59.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><div id="impl-Index%3CRangeInclusive%3Cusize%3E%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1001" title="goto source code">[src]</a></div><a href="#impl-Index%3CRangeInclusive%3Cusize%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-3" class="type 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.59.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.index-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1001" title="goto source code">[src]</a></div><a href="#method.index-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></div></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.59.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><div id="impl-Index%3CRangeTo%3Cusize%3E%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1002" title="goto source code">[src]</a></div><a href="#impl-Index%3CRangeTo%3Cusize%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-4" class="type 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.59.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.index-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1002" title="goto source code">[src]</a></div><a href="#method.index-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></div></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.59.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><div id="impl-Index%3CRangeToInclusive%3Cusize%3E%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1003" title="goto source code">[src]</a></div><a href="#impl-Index%3CRangeToInclusive%3Cusize%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output-5" class="type 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.59.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h4></div></summary><div class='docblock'><p>The returned type after indexing.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.index-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1003" title="goto source code">[src]</a></div><a href="#method.index-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.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.59.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.59.0/std/primitive.usize.html">usize</a>>) -> &Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></h4></div></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.59.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><div id="impl-Ord" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-Ord" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.cmp" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></h4></div></summary><div class='docblock'><p>This method returns an <a href="https://doc.rust-lang.org/1.59.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.59.0/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.max" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#768-770" title="goto source code">[src]</a></div><a href="#method.max" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -> Self</h4></div></summary><div class='docblock'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Ord.html#method.max">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.min" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#788-790" title="goto source code">[src]</a></div><a href="#method.min" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Ord.html#method.min" class="fnname">min</a>(self, other: Self) -> Self</h4></div></summary><div class='docblock'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Ord.html#method.min">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clamp" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#813-815" title="goto source code">[src]</a></div><a href="#method.clamp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Ord.html#method.clamp" class="fnname">clamp</a>(self, min: Self, max: Self) -> Self</h4></div></summary><div class='docblock'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3C%26%27_%20RawOsStr%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1082" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3C%26%27_%20RawOsStr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&'_ <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1082" title="goto source code">[src]</a></div><a href="#method.eq-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &&<a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-4" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3C%26%27_%20str%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1087" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3C%26%27_%20str%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&'_ <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1087" title="goto source code">[src]</a></div><a href="#method.eq-7" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &&<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-7" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-7" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CRawOsStr%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1081" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CRawOsStr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1081" title="goto source code">[src]</a></div><a href="#method.eq-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-2" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CRawOsString%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CRawOsString%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#method.ne" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CRawOsString%3E-1" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1081" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CRawOsString%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>> for <a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1081" title="goto source code">[src]</a></div><a href="#method.eq-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-1" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CRawOsString%3E-2" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1082" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CRawOsString%3E-2" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>> for &<a class="struct" href="struct.RawOsStr.html" title="struct os_str_bytes::RawOsStr">RawOsStr</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1082" title="goto source code">[src]</a></div><a href="#method.eq-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-3" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CRawOsString%3E-3" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1086" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CRawOsString%3E-3" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>> for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1086" title="goto source code">[src]</a></div><a href="#method.eq-6" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-6" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-6" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CRawOsString%3E-4" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1087" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CRawOsString%3E-4" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>> for &<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1087" title="goto source code">[src]</a></div><a href="#method.eq-8" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-8" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-8" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CRawOsString%3E-5" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1088" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CRawOsString%3E-5" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>> for <a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1088" title="goto source code">[src]</a></div><a href="#method.eq-10" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-10" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-10" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3CString%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1088" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3CString%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1088" title="goto source code">[src]</a></div><a href="#method.eq-9" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="https://doc.rust-lang.org/1.59.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-9" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-9" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialEq%3Cstr%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1086" title="goto source code">[src]</a></div><a href="#impl-PartialEq%3Cstr%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.eq-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#1086" title="goto source code">[src]</a></div><a href="#method.eq-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ne-5" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#219" title="goto source code">[src]</a></div><a href="#method.ne-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></summary><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-PartialOrd%3CRawOsString%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-PartialOrd%3CRawOsString%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.partial_cmp" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#method.partial_cmp" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fnname">partial_cmp</a>(&self, other: &<a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.59.0/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>></h4></div></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.59.0/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lt" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#1036" title="goto source code">[src]</a></div><a href="#method.lt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialOrd.html#method.lt" class="fnname">lt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.le" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#1056" title="goto source code">[src]</a></div><a href="#method.le" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialOrd.html#method.le" class="fnname">le</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gt" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#1079" title="goto source code">[src]</a></div><a href="#method.gt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialOrd.html#method.gt" class="fnname">gt</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.ge" class="method trait-impl has-srclink"><div 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.59.0/src/core/cmp.rs.html#1099" title="goto source code">[src]</a></div><a href="#method.ge" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.PartialOrd.html#method.ge" class="fnname">ge</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.bool.html">bool</a></h4></div></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.59.0/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
|
||
</div></details></div></details><div id="impl-Eq" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-Eq" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div><div id="impl-StructuralEq" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-StructuralEq" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div><div id="impl-StructuralPartialEq" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../src/os_str_bytes/raw_str.rs.html#833" title="goto source code">[src]</a></div><a href="#impl-StructuralPartialEq" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></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"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.RawOsString.html" title="struct os_str_bytes::RawOsString">RawOsString</a></h3></div></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" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.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.59.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.59.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Borrow%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#209-214" title="goto source code">[src]</a></div><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#211" title="goto source code">[src]</a></div><a href="#method.borrow-1" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&</a>T</h4></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#218-222" title="goto source code">[src]</a></div><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.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.59.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow_mut" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/borrow.rs.html#219" title="goto source code">[src]</a></div><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.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.59.0/std/primitive.reference.html">&mut </a>T</h4></div></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.59.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#550-554" title="goto source code">[src]</a></div><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#551" title="goto source code">[src]</a></div><a href="#method.from-2" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Into%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#538-545" title="goto source code">[src]</a></div><a href="#impl-Into%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#542" title="goto source code">[src]</a></div><a href="#method.into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-ToOwned" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/alloc/borrow.rs.html#84-96" title="goto source code">[src]</a></div><a href="#impl-ToOwned" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Owned" class="type trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></div></summary><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.to_owned" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/alloc/borrow.rs.html#89" title="goto source code">[src]</a></div><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> T</h4></div></summary><div class='docblock'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.clone_into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/alloc/borrow.rs.html#93" title="goto source code">[src]</a></div><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.reference.html">&mut </a>T)</h4></div></summary><div class="item-info"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</div></div><div class='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.59.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryFrom%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#588-597" title="goto source code">[src]</a></div><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error-1" class="type trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#594" title="goto source code">[src]</a></div><a href="#method.try_from" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TryInto%3CU%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#574-583" title="goto source code">[src]</a></div><a href="#impl-TryInto%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Error" class="type trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></div></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.try_into" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.59.0/src/core/convert/mod.rs.html#580" title="goto source code">[src]</a></div><a href="#method.try_into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.59.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.59.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||
</div></details></div></details></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="os_str_bytes" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.59.0 (9d1b2106e 2022-02-23)" ></div>
|
||
</body></html> |