Adding large folders

This commit is contained in:
2026-02-26 12:00:21 -05:00
parent 5400d82acd
commit 49701c85ad
47332 changed files with 1942573 additions and 0 deletions

View 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-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.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.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.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]--><rustdoc-topbar><h2><a href="#">All</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.15.1</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" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><h1>List of all items</h1><rustdoc-toolbar></rustdoc-toolbar></div><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><li><a href="macro.smallvec_inline.html">smallvec_inline</a></li></ul></section></div></main></body></html>

File diff suppressed because one or more lines are too long

View 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-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.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.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.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]--><rustdoc-topbar><h2><a href="#">Crate smallvec</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.15.1</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" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>smallvec</span>&nbsp;<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-2605">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&lt;[u8; _]&gt;</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 <a href="struct.SmallVec.html#method.new_const" title="associated function smallvec::SmallVec::new_const"><code>SmallVec::new_const</code></a>, <a href="struct.SmallVec.html#method.from_const" title="associated function smallvec::SmallVec::from_const"><code>SmallVec::from_const</code></a>, and <a href="macro.smallvec_inline.html" title="macro smallvec::smallvec_inline"><code>smallvec_inline</code></a> 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><dl class="item-table"><dt><a class="macro" href="macro.smallvec.html" title="macro smallvec::smallvec">smallvec</a></dt><dd>Creates a <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a> containing the arguments.</dd><dt><a class="macro" href="macro.smallvec_inline.html" title="macro smallvec::smallvec_inline">smallvec_<wbr>inline</a></dt><dd>Creates an inline <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a> containing the arguments. This macro is enabled by the feature <code>const_new</code>.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Drain.html" title="struct smallvec::Drain">Drain</a></dt><dd>An iterator that removes the items from a <code>SmallVec</code> and yields them by value.</dd><dt><a class="struct" href="struct.IntoIter.html" title="struct smallvec::IntoIter">Into<wbr>Iter</a></dt><dd>An iterator that consumes a <code>SmallVec</code> and yields its items by value.</dd><dt><a class="struct" href="struct.SmallVec.html" title="struct smallvec::SmallVec">Small<wbr>Vec</a></dt><dd>A <code>Vec</code>-like container that can store a small number of elements inline.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.CollectionAllocErr.html" title="enum smallvec::CollectionAllocErr">Collection<wbr>Alloc<wbr>Err</a></dt><dd>Error type for APIs with fallible heap allocation</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Array.html" title="trait smallvec::Array">Array</a></dt><dd>Types that can be used as the backing store for a <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a>.</dd><dt><a class="trait" href="trait.ToSmallVec.html" title="trait smallvec::ToSmallVec">ToSmall<wbr>Vec</a></dt><dd>Convenience trait for constructing a <code>SmallVec</code></dd></dl></section></div></main></body></html>

View 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>

View File

@@ -0,0 +1,31 @@
<!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-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.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.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.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]--><rustdoc-topbar><h2><a href="#">smallvec</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.15.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">smallvec</a></div><h1>Macro <span class="macro">smallvec</span>&nbsp;<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#184-203">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! smallvec {
(@one $x:expr) =&gt; { ... };
() =&gt; { ... };
($elem:expr; $n:expr) =&gt; { ... };
($($x:expr),+$(,)?) =&gt; { ... };
}</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&lt;[<span class="kw">_</span>; <span class="number">128</span>]&gt; = <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&lt;[<span class="kw">_</span>; <span class="number">0x8000</span>]&gt; = <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.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone"><code>Clone</code></a> and the number of elements doesnt 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>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=macro.smallvec_inline.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="macro.smallvec_inline.html">macro.smallvec_inline.html</a>...</p>
<script>location.replace("macro.smallvec_inline.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,24 @@
<!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 an inline `SmallVec` containing the arguments. This macro is enabled by the feature `const_new`."><title>smallvec_inline in smallvec - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.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.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.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]--><rustdoc-topbar><h2><a href="#">smallvec_inline</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.15.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">smallvec</a></div><h1>Macro <span class="macro">smallvec_<wbr>inline</span>&nbsp;<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#237-247">Source</a> </span></div><pre class="rust item-decl"><code>macro_rules! smallvec_inline {
(@one $x:expr) =&gt; { ... };
($elem:expr; $n:expr) =&gt; { ... };
($($x:expr),+ $(,)?) =&gt; { ... };
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an inline <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a> containing the arguments. This macro is enabled by the feature <code>const_new</code>.</p>
<p><code>smallvec_inline!</code> allows <code>SmallVec</code>s to be defined with the same syntax as array expressions in <code>const</code> contexts.
The inline storage <code>A</code> will always be an array of the size specified by the arguments.
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">const </span>V: SmallVec&lt;[i32; <span class="number">3</span>]&gt; = <span class="macro">smallvec_inline!</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">const </span>V: SmallVec&lt;[i32; <span class="number">3</span>]&gt; = <span class="macro">smallvec_inline!</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 the behavior mimics that of array expressions, in contrast to <a href="macro.smallvec.html" title="macro smallvec::smallvec"><code>smallvec</code></a>.</p>
</div></details></section></div></main></body></html>

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["CollectionAllocErr"],"macro":["smallvec","smallvec_inline"],"struct":["Drain","IntoIter","SmallVec"],"trait":["Array","ToSmallVec"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,9 @@
<!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="Types that can be used as the backing store for a `SmallVec`."><title>Array in smallvec - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.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.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.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]--><rustdoc-topbar><h2><a href="#">Array</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.15.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Array</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Item" title="Item">Item</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.size" title="size">size</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Array-for-%5BT;+N%5D" title="[T; N]">[T; N]</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><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" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">smallvec</a></div><h1>Trait <span class="trait">Array</span>&nbsp;<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#2351-2356">Source</a> </span></div><pre class="rust item-decl"><code>pub unsafe trait Array {
type <a href="#associatedtype.Item" class="associatedtype">Item</a>;
// Required method
fn <a href="#tymethod.size" class="fn">size</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.usize.html">usize</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Types that can be used as the backing store for a <a href="struct.SmallVec.html" title="struct smallvec::SmallVec"><code>SmallVec</code></a>.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Item" class="method"><a class="src rightside" href="../src/smallvec/lib.rs.html#2353">Source</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a></h4></section></summary><div class="docblock"><p>The type of the arrays elements.</p>
</div></details></div><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.size" class="method"><a class="src rightside" href="../src/smallvec/lib.rs.html#2355">Source</a><h4 class="code-header">fn <a href="#tymethod.size" class="fn">size</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the number of items the array can hold.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.93.1/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></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-Array-for-%5BT;+N%5D" class="impl"><a class="src rightside" href="../src/smallvec/lib.rs.html#2436-2442">Source</a><a href="#impl-Array-for-%5BT;+N%5D" class="anchor">§</a><h3 class="code-header">impl&lt;T, const N: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.usize.html">usize</a>&gt; <a class="trait" href="trait.Array.html" title="trait smallvec::Array">Array</a> for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.array.html">[T; N]</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>const_generics</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.Item-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/smallvec/lib.rs.html#2437">Source</a><a href="#associatedtype.Item-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section><section id="method.size" class="method trait-impl"><a class="src rightside" href="../src/smallvec/lib.rs.html#2439-2441">Source</a><a href="#method.size" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.size" class="fn">size</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/core/primitive.usize.html">usize</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.Array.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>

View 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-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.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.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.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]--><rustdoc-topbar><h2><a href="#">ToSmallVec</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../smallvec/index.html">smallvec</a><span class="version">1.15.1</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" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">smallvec</a></div><h1>Trait <span class="trait">ToSmall<wbr>Vec</span>&nbsp;<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#2465-2468">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ToSmallVec&lt;A: <a class="trait" href="trait.Array.html" title="trait smallvec::Array">Array</a>&gt; {
// Required method
fn <a href="#tymethod.to_smallvec" class="fn">to_smallvec</a>(&amp;self) -&gt; <a class="struct" href="struct.SmallVec.html" title="struct smallvec::SmallVec">SmallVec</a>&lt;A&gt;;
}</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#2467">Source</a><h4 class="code-header">fn <a href="#tymethod.to_smallvec" class="fn">to_smallvec</a>(&amp;self) -&gt; <a class="struct" href="struct.SmallVec.html" title="struct smallvec::SmallVec">SmallVec</a>&lt;A&gt;</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#2470-2478">Source</a><a href="#impl-ToSmallVec%3CA%3E-for-%5B%3CA+as+Array%3E::Item%5D" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Array.html" title="trait smallvec::Array">Array</a>&gt; <a class="trait" href="trait.ToSmallVec.html" title="trait smallvec::ToSmallVec">ToSmallVec</a>&lt;A&gt; 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.93.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#2475-2477">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>(&amp;self) -&gt; <a class="struct" href="struct.SmallVec.html" title="struct smallvec::SmallVec">SmallVec</a>&lt;A&gt;</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>