mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-16 16:03:48 +00:00
deploy: de38ae62916547ad097c066f94a32e9ba7790eeb
This commit is contained in:
commit
9a86359447
28502 changed files with 1261284 additions and 0 deletions
1
smallvec/all.html
Normal file
1
smallvec/all.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!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="List of all items in this crate"><title>List of all items in this crate</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="smallvec" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod sys"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.13.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h3><a href="#macros">Crate Items</a></h3><ul class="block"><li><a href="#macros" title="Macros">Macros</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><h1>List of all items</h1><h3 id="structs">Structs</h3><ul class="all-items"><li><a href="struct.Drain.html">Drain</a></li><li><a href="struct.IntoIter.html">IntoIter</a></li><li><a href="struct.SmallVec.html">SmallVec</a></li></ul><h3 id="enums">Enums</h3><ul class="all-items"><li><a href="enum.CollectionAllocErr.html">CollectionAllocErr</a></li></ul><h3 id="traits">Traits</h3><ul class="all-items"><li><a href="trait.Array.html">Array</a></li><li><a href="trait.ToSmallVec.html">ToSmallVec</a></li></ul><h3 id="macros">Macros</h3><ul class="all-items"><li><a href="macro.smallvec.html">smallvec</a></li></ul></section></div></main></body></html>
|
||||
21
smallvec/enum.CollectionAllocErr.html
Normal file
21
smallvec/enum.CollectionAllocErr.html
Normal file
File diff suppressed because one or more lines are too long
52
smallvec/index.html
Normal file
52
smallvec/index.html
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<!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="Small vectors in various sizes. These store a certain number of elements inline, and fall back to the heap for larger allocations. This can be a useful optimization for improving cache locality and reducing allocator traffic for workloads that fit within the inline buffer."><title>smallvec - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="smallvec" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.13.2</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#no_std-support" title="`no_std` support"><code>no_std</code> support</a></li><li><a href="#optional-features" title="Optional features">Optional features</a><ul><li><a href="#serde" title="`serde`"><code>serde</code></a></li><li><a href="#write" title="`write`"><code>write</code></a></li><li><a href="#union" title="`union`"><code>union</code></a></li><li><a href="#const_generics" title="`const_generics`"><code>const_generics</code></a></li><li><a href="#const_new" title="`const_new`"><code>const_new</code></a></li><li><a href="#drain_filter" title="`drain_filter`"><code>drain_filter</code></a></li><li><a href="#drain_keep_rest" title="`drain_keep_rest`"><code>drain_keep_rest</code></a></li><li><a href="#specialization" title="`specialization`"><code>specialization</code></a></li><li><a href="#may_dangle" title="`may_dangle`"><code>may_dangle</code></a></li></ul></li></ul><h3><a href="#macros">Crate Items</a></h3><ul class="block"><li><a href="#macros" title="Macros">Macros</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>smallvec</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/smallvec/lib.rs.html#7-2472">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Small vectors in various sizes. These store a certain number of elements inline, and fall back
|
||||
to the heap for larger allocations. This can be a useful optimization for improving cache
|
||||
locality and reducing allocator traffic for workloads that fit within the inline buffer.</p>
|
||||
<h3 id="no_std-support"><a class="doc-anchor" href="#no_std-support">§</a><code>no_std</code> support</h3>
|
||||
<p>By default, <code>smallvec</code> does not depend on <code>std</code>. However, the optional
|
||||
<code>write</code> feature implements the <code>std::io::Write</code> trait for vectors of <code>u8</code>.
|
||||
When this feature is enabled, <code>smallvec</code> depends on <code>std</code>.</p>
|
||||
<h3 id="optional-features"><a class="doc-anchor" href="#optional-features">§</a>Optional features</h3><h4 id="serde"><a class="doc-anchor" href="#serde">§</a><code>serde</code></h4>
|
||||
<p>When this optional dependency is enabled, <code>SmallVec</code> implements the <code>serde::Serialize</code> and
|
||||
<code>serde::Deserialize</code> traits.</p>
|
||||
<h4 id="write"><a class="doc-anchor" href="#write">§</a><code>write</code></h4>
|
||||
<p>When this feature is enabled, <code>SmallVec<[u8; _]></code> implements the <code>std::io::Write</code> trait.
|
||||
This feature is not compatible with <code>#![no_std]</code> programs.</p>
|
||||
<h4 id="union"><a class="doc-anchor" href="#union">§</a><code>union</code></h4>
|
||||
<p><strong>This feature requires Rust 1.49.</strong></p>
|
||||
<p>When the <code>union</code> feature is enabled <code>smallvec</code> will track its state (inline or spilled)
|
||||
without the use of an enum tag, reducing the size of the <code>smallvec</code> by one machine word.
|
||||
This means that there is potentially no space overhead compared to <code>Vec</code>.
|
||||
Note that <code>smallvec</code> can still be larger than <code>Vec</code> if the inline buffer is larger than two
|
||||
machine words.</p>
|
||||
<p>To use this feature add <code>features = ["union"]</code> in the <code>smallvec</code> section of Cargo.toml.
|
||||
Note that this feature requires Rust 1.49.</p>
|
||||
<p>Tracking issue: <a href="https://github.com/rust-lang/rust/issues/55149">rust-lang/rust#55149</a></p>
|
||||
<h4 id="const_generics"><a class="doc-anchor" href="#const_generics">§</a><code>const_generics</code></h4>
|
||||
<p><strong>This feature requires Rust 1.51.</strong></p>
|
||||
<p>When this feature is enabled, <code>SmallVec</code> works with any arrays of any size, not just a fixed
|
||||
list of sizes.</p>
|
||||
<h4 id="const_new"><a class="doc-anchor" href="#const_new">§</a><code>const_new</code></h4>
|
||||
<p><strong>This feature requires Rust 1.51.</strong></p>
|
||||
<p>This feature exposes the functions [<code>SmallVec::new_const</code>], [<code>SmallVec::from_const</code>], and [<code>smallvec_inline</code>] which enables the <code>SmallVec</code> to be initialized from a const context.
|
||||
For details, see the
|
||||
<a href="https://doc.rust-lang.org/reference/const_eval.html#const-functions">Rust Reference</a>.</p>
|
||||
<h4 id="drain_filter"><a class="doc-anchor" href="#drain_filter">§</a><code>drain_filter</code></h4>
|
||||
<p><strong>This feature is unstable.</strong> It may change to match the unstable <code>drain_filter</code> method in libstd.</p>
|
||||
<p>Enables the <code>drain_filter</code> method, which produces an iterator that calls a user-provided
|
||||
closure to determine which elements of the vector to remove and yield from the iterator.</p>
|
||||
<h4 id="drain_keep_rest"><a class="doc-anchor" href="#drain_keep_rest">§</a><code>drain_keep_rest</code></h4>
|
||||
<p><strong>This feature is unstable.</strong> It may change to match the unstable <code>drain_keep_rest</code> method in libstd.</p>
|
||||
<p>Enables the <code>DrainFilter::keep_rest</code> method.</p>
|
||||
<h4 id="specialization"><a class="doc-anchor" href="#specialization">§</a><code>specialization</code></h4>
|
||||
<p><strong>This feature is unstable and requires a nightly build of the Rust toolchain.</strong></p>
|
||||
<p>When this feature is enabled, <code>SmallVec::from(slice)</code> has improved performance for slices
|
||||
of <code>Copy</code> types. (Without this feature, you can use <code>SmallVec::from_slice</code> to get optimal
|
||||
performance for <code>Copy</code> types.)</p>
|
||||
<p>Tracking issue: <a href="https://github.com/rust-lang/rust/issues/31844">rust-lang/rust#31844</a></p>
|
||||
<h4 id="may_dangle"><a class="doc-anchor" href="#may_dangle">§</a><code>may_dangle</code></h4>
|
||||
<p><strong>This feature is unstable and requires a nightly build of the Rust toolchain.</strong></p>
|
||||
<p>This feature makes the Rust compiler less strict about use of vectors that contain borrowed
|
||||
references. For details, see the
|
||||
<a href="https://doc.rust-lang.org/1.42.0/nomicon/dropck.html#an-escape-hatch">Rustonomicon</a>.</p>
|
||||
<p>Tracking issue: <a href="https://github.com/rust-lang/rust/issues/34761">rust-lang/rust#34761</a></p>
|
||||
</div></details><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="macro" href="macro.smallvec.html" title="macro smallvec::smallvec">smallvec</a></div><div class="desc docblock-short">Creates a <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a> containing the arguments.</div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Drain.html" title="struct smallvec::Drain">Drain</a></div><div class="desc docblock-short">An iterator that removes the items from a <code>SmallVec</code> and yields them by value.</div></li><li><div class="item-name"><a class="struct" href="struct.IntoIter.html" title="struct smallvec::IntoIter">Into<wbr>Iter</a></div><div class="desc docblock-short">An iterator that consumes a <code>SmallVec</code> and yields its items by value.</div></li><li><div class="item-name"><a class="struct" href="struct.SmallVec.html" title="struct smallvec::SmallVec">Small<wbr>Vec</a></div><div class="desc docblock-short">A <code>Vec</code>-like container that can store a small number of elements inline.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.CollectionAllocErr.html" title="enum smallvec::CollectionAllocErr">Collection<wbr>Alloc<wbr>Err</a></div><div class="desc docblock-short">Error type for APIs with fallible heap allocation</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.Array.html" title="trait smallvec::Array">Array</a></div><div class="desc docblock-short">Types that can be used as the backing store for a <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a>.</div></li><li><div class="item-name"><a class="trait" href="trait.ToSmallVec.html" title="trait smallvec::ToSmallVec">ToSmall<wbr>Vec</a></div><div class="desc docblock-short">Convenience trait for constructing a <code>SmallVec</code></div></li></ul></section></div></main></body></html>
|
||||
11
smallvec/macro.smallvec!.html
Normal file
11
smallvec/macro.smallvec!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.smallvec.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.smallvec.html">macro.smallvec.html</a>...</p>
|
||||
<script>location.replace("macro.smallvec.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
30
smallvec/macro.smallvec.html
Normal file
30
smallvec/macro.smallvec.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<!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="Creates a `SmallVec` containing the arguments."><title>smallvec in smallvec - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="smallvec" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.13.2</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">smallvec</a></span><h1>Macro <span class="macro">smallvec</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/smallvec/lib.rs.html#182-199">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! smallvec {
|
||||
(@one $x:expr) => { ... };
|
||||
($elem:expr; $n:expr) => { ... };
|
||||
($($x:expr),*$(,)*) => { ... };
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a> containing the arguments.</p>
|
||||
<p><code>smallvec!</code> allows <code>SmallVec</code>s to be defined with the same syntax as array expressions.
|
||||
There are two forms of this macro:</p>
|
||||
<ul>
|
||||
<li>Create a <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a> containing a given list of elements:</li>
|
||||
</ul>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>v: SmallVec<[<span class="kw">_</span>; <span class="number">128</span>]> = <span class="macro">smallvec!</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>];
|
||||
<span class="macro">assert_eq!</span>(v[<span class="number">0</span>], <span class="number">1</span>);
|
||||
<span class="macro">assert_eq!</span>(v[<span class="number">1</span>], <span class="number">2</span>);
|
||||
<span class="macro">assert_eq!</span>(v[<span class="number">2</span>], <span class="number">3</span>);</code></pre></div>
|
||||
<ul>
|
||||
<li>Create a <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a> from a given element and size:</li>
|
||||
</ul>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>v: SmallVec<[<span class="kw">_</span>; <span class="number">0x8000</span>]> = <span class="macro">smallvec!</span>[<span class="number">1</span>; <span class="number">3</span>];
|
||||
<span class="macro">assert_eq!</span>(v, SmallVec::from_buf([<span class="number">1</span>, <span class="number">1</span>, <span class="number">1</span>]));</code></pre></div>
|
||||
<p>Note that unlike array expressions this syntax supports all elements
|
||||
which implement <a href="https://doc.rust-lang.org/1.84.1/core/clone/trait.Clone.html" title="trait core::clone::Clone"><code>Clone</code></a> and the number of elements doesn’t have to be
|
||||
a constant.</p>
|
||||
<p>This will use <code>clone</code> to duplicate an expression, so one should be careful
|
||||
using this with types having a nonstandard <code>Clone</code> implementation. For
|
||||
example, <code>smallvec![Rc::new(1); 5]</code> will create a vector of five references
|
||||
to the same boxed integer value, not five references pointing to independently
|
||||
boxed integers.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
1
smallvec/sidebar-items.js
Normal file
1
smallvec/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["CollectionAllocErr"],"macro":["smallvec"],"struct":["Drain","IntoIter","SmallVec"],"trait":["Array","ToSmallVec"]};
|
||||
234
smallvec/struct.Drain.html
Normal file
234
smallvec/struct.Drain.html
Normal file
File diff suppressed because one or more lines are too long
244
smallvec/struct.IntoIter.html
Normal file
244
smallvec/struct.IntoIter.html
Normal file
File diff suppressed because one or more lines are too long
2793
smallvec/struct.SmallVec.html
Normal file
2793
smallvec/struct.SmallVec.html
Normal file
File diff suppressed because one or more lines are too long
9
smallvec/trait.Array.html
Normal file
9
smallvec/trait.Array.html
Normal file
File diff suppressed because one or more lines are too long
7
smallvec/trait.ToSmallVec.html
Normal file
7
smallvec/trait.ToSmallVec.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Convenience trait for constructing a `SmallVec`"><title>ToSmallVec in smallvec - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="smallvec" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.13.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ToSmall<wbr>Vec</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.to_smallvec" title="to_smallvec">to_smallvec</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ToSmallVec%3CA%3E-for-%5B%3CA+as+Array%3E::Item%5D" title="[A::Item]">[A::Item]</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate smallvec</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">smallvec</a></span><h1>Trait <span class="trait">ToSmallVec</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/smallvec/lib.rs.html#2435-2438">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToSmallVec<A: <a class="trait" href="trait.Array.html" title="trait smallvec::Array">Array</a>> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.to_smallvec" class="fn">to_smallvec</a>(&self) -> <a class="struct" href="struct.SmallVec.html" title="struct smallvec::SmallVec">SmallVec</a><A>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Convenience trait for constructing a <code>SmallVec</code></p>
|
||||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.to_smallvec" class="method"><a class="src rightside" href="../src/smallvec/lib.rs.html#2437">Source</a><h4 class="code-header">fn <a href="#tymethod.to_smallvec" class="fn">to_smallvec</a>(&self) -> <a class="struct" href="struct.SmallVec.html" title="struct smallvec::SmallVec">SmallVec</a><A></h4></section></summary><div class="docblock"><p>Construct a new <code>SmallVec</code> from a slice.</p>
|
||||
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ToSmallVec%3CA%3E-for-%5B%3CA+as+Array%3E::Item%5D" class="impl"><a class="src rightside" href="../src/smallvec/lib.rs.html#2440-2448">Source</a><a href="#impl-ToSmallVec%3CA%3E-for-%5B%3CA+as+Array%3E::Item%5D" class="anchor">§</a><h3 class="code-header">impl<A: <a class="trait" href="trait.Array.html" title="trait smallvec::Array">Array</a>> <a class="trait" href="trait.ToSmallVec.html" title="trait smallvec::ToSmallVec">ToSmallVec</a><A> for [A::<a class="associatedtype" href="trait.Array.html#associatedtype.Item" title="type smallvec::Array::Item">Item</a>]<div class="where">where
|
||||
A::<a class="associatedtype" href="trait.Array.html#associatedtype.Item" title="type smallvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>,</div></h3></section></summary><div class="impl-items"><section id="method.to_smallvec" class="method trait-impl"><a class="src rightside" href="../src/smallvec/lib.rs.html#2445-2447">Source</a><a href="#method.to_smallvec" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.to_smallvec" class="fn">to_smallvec</a>(&self) -> <a class="struct" href="struct.SmallVec.html" title="struct smallvec::SmallVec">SmallVec</a><A></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/smallvec/trait.ToSmallVec.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue