Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit fce52c7

Browse files
committed
v6.8 upload
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 242ad3e commit fce52c7

File tree

30,196 files changed

+1168366
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

30,196 files changed

+1168366
-0
lines changed

v6.8/.lock

Whitespace-only changes.

v6.8/alloc/all.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-fa3bb1812debf86c.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="alloc" data-themes="" data-resource-suffix="" data-rustdoc-version="1.74.1 (a28077b28 2023-12-04)" data-channel="1.74.1" data-search-js="search-8be46b629f5f14a8.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../static.files/main-c5bd66d33317d69f.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="icon" type="image/svg+xml" href="../static.files/logo.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../alloc/index.html"><img class="rust-logo" src="../static.files/logo.svg" alt="logo"></a></nav><nav class="sidebar"><a class="logo-container" href="../alloc/index.html"><img class="rust-logo" src="../static.files/logo.svg" alt="logo"></a><h2 class="location"><a href="#">Crate alloc</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Aliases</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><h1>List of all items</h1><h3 id="structs">Structs</h3><ul class="all-items"><li><a href="alloc/struct.AllocError.html">alloc::AllocError</a></li><li><a href="alloc/struct.Global.html">alloc::Global</a></li><li><a href="alloc/struct.Layout.html">alloc::Layout</a></li><li><a href="alloc/struct.LayoutError.html">alloc::LayoutError</a></li><li><a href="boxed/struct.Box.html">boxed::Box</a></li><li><a href="collections/struct.TryReserveError.html">collections::TryReserveError</a></li><li><a href="slice/struct.ArrayChunks.html">slice::ArrayChunks</a></li><li><a href="slice/struct.ArrayChunksMut.html">slice::ArrayChunksMut</a></li><li><a href="slice/struct.ArrayWindows.html">slice::ArrayWindows</a></li><li><a href="slice/struct.Chunks.html">slice::Chunks</a></li><li><a href="slice/struct.ChunksExact.html">slice::ChunksExact</a></li><li><a href="slice/struct.ChunksExactMut.html">slice::ChunksExactMut</a></li><li><a href="slice/struct.ChunksMut.html">slice::ChunksMut</a></li><li><a href="slice/struct.EscapeAscii.html">slice::EscapeAscii</a></li><li><a href="slice/struct.GroupBy.html">slice::GroupBy</a></li><li><a href="slice/struct.GroupByMut.html">slice::GroupByMut</a></li><li><a href="slice/struct.Iter.html">slice::Iter</a></li><li><a href="slice/struct.IterMut.html">slice::IterMut</a></li><li><a href="slice/struct.RChunks.html">slice::RChunks</a></li><li><a href="slice/struct.RChunksExact.html">slice::RChunksExact</a></li><li><a href="slice/struct.RChunksExactMut.html">slice::RChunksExactMut</a></li><li><a href="slice/struct.RChunksMut.html">slice::RChunksMut</a></li><li><a href="slice/struct.RSplit.html">slice::RSplit</a></li><li><a href="slice/struct.RSplitMut.html">slice::RSplitMut</a></li><li><a href="slice/struct.RSplitN.html">slice::RSplitN</a></li><li><a href="slice/struct.RSplitNMut.html">slice::RSplitNMut</a></li><li><a href="slice/struct.Split.html">slice::Split</a></li><li><a href="slice/struct.SplitInclusive.html">slice::SplitInclusive</a></li><li><a href="slice/struct.SplitInclusiveMut.html">slice::SplitInclusiveMut</a></li><li><a href="slice/struct.SplitMut.html">slice::SplitMut</a></li><li><a href="slice/struct.SplitN.html">slice::SplitN</a></li><li><a href="slice/struct.SplitNMut.html">slice::SplitNMut</a></li><li><a href="slice/struct.Windows.html">slice::Windows</a></li><li><a href="vec/struct.Drain.html">vec::Drain</a></li><li><a href="vec/struct.ExtractIf.html">vec::ExtractIf</a></li><li><a href="vec/struct.IntoIter.html">vec::IntoIter</a></li><li><a href="vec/struct.Vec.html">vec::Vec</a></li></ul><h3 id="enums">Enums</h3><ul class="all-items"><li><a href="collections/enum.TryReserveErrorKind.html">collections::TryReserveErrorKind</a></li></ul><h3 id="traits">Traits</h3><ul class="all-items"><li><a href="alloc/trait.Allocator.html">alloc::Allocator</a></li><li><a href="alloc/trait.GlobalAlloc.html">alloc::GlobalAlloc</a></li><li><a href="slice/trait.Concat.html">slice::Concat</a></li><li><a href="slice/trait.Join.html">slice::Join</a></li><li><a href="slice/trait.SliceIndex.html">slice::SliceIndex</a></li></ul><h3 id="functions">Functions</h3><ul class="all-items"><li><a href="alloc/fn.alloc.html">alloc::alloc</a></li><li><a href="alloc/fn.alloc_zeroed.html">alloc::alloc_zeroed</a></li><li><a href="alloc/fn.dealloc.html">alloc::dealloc</a></li><li><a href="alloc/fn.realloc.html">alloc::realloc</a></li><li><a href="slice/fn.from_mut.html">slice::from_mut</a></li><li><a href="slice/fn.from_mut_ptr_range.html">slice::from_mut_ptr_range</a></li><li><a href="slice/fn.from_ptr_range.html">slice::from_ptr_range</a></li><li><a href="slice/fn.from_raw_parts.html">slice::from_raw_parts</a></li><li><a href="slice/fn.from_raw_parts_mut.html">slice::from_raw_parts_mut</a></li><li><a href="slice/fn.from_ref.html">slice::from_ref</a></li><li><a href="slice/fn.range.html">slice::range</a></li></ul><h3 id="types">Type Aliases</h3><ul class="all-items"><li><a href="alloc/type.LayoutErr.html">alloc::LayoutErr</a></li></ul></section></div></main></body></html>

v6.8/alloc/alloc/fn.alloc.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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="Allocate memory with the global allocator."><title>alloc in alloc::alloc - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-fa3bb1812debf86c.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="alloc" data-themes="" data-resource-suffix="" data-rustdoc-version="1.74.1 (a28077b28 2023-12-04)" data-channel="1.74.1" data-search-js="search-8be46b629f5f14a8.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-c5bd66d33317d69f.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="icon" type="image/svg+xml" href="../../static.files/logo.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../../alloc/index.html"><img class="rust-logo" src="../../static.files/logo.svg" alt="logo"></a></nav><nav class="sidebar"><a class="logo-container" href="../../alloc/index.html"><img class="rust-logo" src="../../static.files/logo.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In alloc::alloc</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">alloc</a>::<wbr><a href="index.html">alloc</a>::<wbr><a class="fn" href="#">alloc</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><span class="since" title="Stable since Rust version 1.28.0">1.28.0</span> · <a class="src" href="../../src/alloc/alloc.rs.html#94-102">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub unsafe fn alloc(layout: <a class="struct" href="struct.Layout.html" title="struct alloc::alloc::Layout">Layout</a>) -&gt; <a class="primitive" href="../../core/primitive.pointer.html">*mut </a><a class="primitive" href="../../core/primitive.u8.html">u8</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Allocate memory with the global allocator.</p>
2+
<p>This function forwards calls to the <a href="trait.GlobalAlloc.html#tymethod.alloc" title="method alloc::alloc::GlobalAlloc::alloc"><code>GlobalAlloc::alloc</code></a> method
3+
of the allocator registered with the <code>#[global_allocator]</code> attribute
4+
if there is one, or the <code>std</code> crate’s default.</p>
5+
<p>This function is expected to be deprecated in favor of the <code>alloc</code> method
6+
of the <a href="struct.Global.html" title="struct alloc::alloc::Global"><code>Global</code></a> type when it and the <a href="trait.Allocator.html" title="trait alloc::alloc::Allocator"><code>Allocator</code></a> trait become stable.</p>
7+
<h2 id="safety"><a href="#safety">Safety</a></h2>
8+
<p>See <a href="trait.GlobalAlloc.html#tymethod.alloc" title="method alloc::alloc::GlobalAlloc::alloc"><code>GlobalAlloc::alloc</code></a>.</p>
9+
<h2 id="examples"><a href="#examples">Examples</a></h2>
10+
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>std::alloc::{alloc, dealloc, handle_alloc_error, Layout};
11+
12+
<span class="kw">unsafe </span>{
13+
<span class="kw">let </span>layout = Layout::new::&lt;u16&gt;();
14+
<span class="kw">let </span>ptr = alloc(layout);
15+
<span class="kw">if </span>ptr.is_null() {
16+
handle_alloc_error(layout);
17+
}
18+
19+
<span class="kw-2">*</span>(ptr <span class="kw">as </span><span class="kw-2">*mut </span>u16) = <span class="number">42</span>;
20+
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>(ptr <span class="kw">as </span><span class="kw-2">*mut </span>u16), <span class="number">42</span>);
21+
22+
dealloc(ptr, layout);
23+
}</code></pre><a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0Ause+std::alloc::%7Balloc,+dealloc,+handle_alloc_error,+Layout%7D;%0A%0Aunsafe+%7B%0A++++let+layout+=+Layout::new::%3Cu16%3E();%0A++++let+ptr+=+alloc(layout);%0A++++if+ptr.is_null()+%7B%0A++++++++handle_alloc_error(layout);%0A++++%7D%0A%0A++++*(ptr+as+*mut+u16)+=+42;%0A++++assert_eq!(*(ptr+as+*mut+u16),+42);%0A%0A++++dealloc(ptr,+layout);%0A%7D%0A%7D&amp;edition=2021">Run</a></div>
24+
</div></details></section></div></main></body></html>

v6.8/alloc/alloc/fn.alloc_zeroed.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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="Allocate zero-initialized memory with the global allocator."><title>alloc_zeroed in alloc::alloc - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-fa3bb1812debf86c.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="alloc" data-themes="" data-resource-suffix="" data-rustdoc-version="1.74.1 (a28077b28 2023-12-04)" data-channel="1.74.1" data-search-js="search-8be46b629f5f14a8.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-c5bd66d33317d69f.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="icon" type="image/svg+xml" href="../../static.files/logo.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../../alloc/index.html"><img class="rust-logo" src="../../static.files/logo.svg" alt="logo"></a></nav><nav class="sidebar"><a class="logo-container" href="../../alloc/index.html"><img class="rust-logo" src="../../static.files/logo.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In alloc::alloc</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">alloc</a>::<wbr><a href="index.html">alloc</a>::<wbr><a class="fn" href="#">alloc_zeroed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><span class="since" title="Stable since Rust version 1.28.0">1.28.0</span> · <a class="src" href="../../src/alloc/alloc.rs.html#171-173">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub unsafe fn alloc_zeroed(layout: <a class="struct" href="struct.Layout.html" title="struct alloc::alloc::Layout">Layout</a>) -&gt; <a class="primitive" href="../../core/primitive.pointer.html">*mut </a><a class="primitive" href="../../core/primitive.u8.html">u8</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Allocate zero-initialized memory with the global allocator.</p>
2+
<p>This function forwards calls to the <a href="trait.GlobalAlloc.html#method.alloc_zeroed" title="method alloc::alloc::GlobalAlloc::alloc_zeroed"><code>GlobalAlloc::alloc_zeroed</code></a> method
3+
of the allocator registered with the <code>#[global_allocator]</code> attribute
4+
if there is one, or the <code>std</code> crate’s default.</p>
5+
<p>This function is expected to be deprecated in favor of the <code>alloc_zeroed</code> method
6+
of the <a href="struct.Global.html" title="struct alloc::alloc::Global"><code>Global</code></a> type when it and the <a href="trait.Allocator.html" title="trait alloc::alloc::Allocator"><code>Allocator</code></a> trait become stable.</p>
7+
<h2 id="safety"><a href="#safety">Safety</a></h2>
8+
<p>See <a href="trait.GlobalAlloc.html#method.alloc_zeroed" title="method alloc::alloc::GlobalAlloc::alloc_zeroed"><code>GlobalAlloc::alloc_zeroed</code></a>.</p>
9+
<h2 id="examples"><a href="#examples">Examples</a></h2>
10+
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>std::alloc::{alloc_zeroed, dealloc, Layout};
11+
12+
<span class="kw">unsafe </span>{
13+
<span class="kw">let </span>layout = Layout::new::&lt;u16&gt;();
14+
<span class="kw">let </span>ptr = alloc_zeroed(layout);
15+
16+
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>(ptr <span class="kw">as </span><span class="kw-2">*mut </span>u16), <span class="number">0</span>);
17+
18+
dealloc(ptr, layout);
19+
}</code></pre><a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23%5Ballow(unused_extern_crates)%5D%0Aextern+crate+r%23alloc;%0Afn+main()+%7B%0Ause+std::alloc::%7Balloc_zeroed,+dealloc,+Layout%7D;%0A%0Aunsafe+%7B%0A++++let+layout+=+Layout::new::%3Cu16%3E();%0A++++let+ptr+=+alloc_zeroed(layout);%0A%0A++++assert_eq!(*(ptr+as+*mut+u16),+0);%0A%0A++++dealloc(ptr,+layout);%0A%7D%0A%7D&amp;edition=2021">Run</a></div>
20+
</div></details></section></div></main></body></html>

0 commit comments

Comments
 (0)